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