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() {
|
public static boolean hasPrivileges() {
|
||||||
Path pv = Paths.get(Bukkit.getWorldContainer() + "iristest.json");
|
return true ;
|
||||||
try (FileChannel fc = FileChannel.open(pv, StandardOpenOption.CREATE, StandardOpenOption.DELETE_ON_CLOSE, StandardOpenOption.READ, StandardOpenOption.WRITE)) {
|
// Path pv = Paths.get(Bukkit.getWorldContainer() + "iristest.json");
|
||||||
if (Files.isReadable(pv) && Files.isWritable(pv)) {
|
// try (FileChannel fc = FileChannel.open(pv, StandardOpenOption.CREATE, StandardOpenOption.DELETE_ON_CLOSE, StandardOpenOption.READ, StandardOpenOption.WRITE)) {
|
||||||
return true;
|
// if (Files.isReadable(pv) && Files.isWritable(pv)) {
|
||||||
}
|
// return true;
|
||||||
} catch (Exception e) {
|
// }
|
||||||
return false;
|
// } catch (Exception e) {
|
||||||
}
|
// return false;
|
||||||
return false;
|
// }
|
||||||
|
// return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean enoughDiskSpace() {
|
public static boolean enoughDiskSpace() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user