mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 10:43:14 +00:00
Disabled for now
This commit is contained in:
parent
1740bb0021
commit
bad547356c
@ -148,15 +148,16 @@ public class ServerBootSFG {
|
||||
}
|
||||
|
||||
public static boolean hasPrivileges() {
|
||||
Path pv = Paths.get(Bukkit.getWorldContainer() + "iristest.json");
|
||||
try (FileChannel fc = FileChannel.open(pv, StandardOpenOption.CREATE, StandardOpenOption.DELETE_ON_CLOSE, StandardOpenOption.READ, StandardOpenOption.WRITE)) {
|
||||
if (Files.isReadable(pv) && Files.isWritable(pv)) {
|
||||
return true ;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
// Path pv = Paths.get(Bukkit.getWorldContainer() + "iristest.json");
|
||||
// try (FileChannel fc = FileChannel.open(pv, StandardOpenOption.CREATE, StandardOpenOption.DELETE_ON_CLOSE, StandardOpenOption.READ, StandardOpenOption.WRITE)) {
|
||||
// if (Files.isReadable(pv) && Files.isWritable(pv)) {
|
||||
// return true;
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// return false;
|
||||
// }
|
||||
// return false;
|
||||
}
|
||||
|
||||
public static boolean enoughDiskSpace() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user