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