Disabled for now

This commit is contained in:
RePixelatedMC 2024-01-14 16:43:39 +01:00
parent 1740bb0021
commit bad547356c

View File

@ -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() {