mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-03-02 10:31:25 +01:00
Use SuperPerms if "Permissions" plugin isn't found
This commit is contained in:
parent
911d62a411
commit
6d0da77e7d
@ -3,7 +3,7 @@ name: NoCheat
|
||||
author: Evenprime
|
||||
|
||||
main: cc.co.evenprime.bukkit.nocheat.NoCheat
|
||||
version: 1.14d
|
||||
version: 1.14e
|
||||
|
||||
softdepend: [ Permissions, CraftIRC ]
|
||||
|
||||
|
@ -171,6 +171,9 @@ public class NoCheat extends JavaPlugin {
|
||||
if(!useNewPermissionSystem) {
|
||||
setupPermissions();
|
||||
}
|
||||
else {
|
||||
Logger.getLogger("Minecraft").info("[NoCheat] is using SuperPerms system.");
|
||||
}
|
||||
setupIRC();
|
||||
|
||||
Logger.getLogger("Minecraft").info("[NoCheat] version [" + pdfFile.getVersion() + "] is enabled with the following checks: " + getActiveChecksAsString());
|
||||
@ -255,7 +258,8 @@ public class NoCheat extends JavaPlugin {
|
||||
this.permissions = ((Permissions) permissionsPlugin).getHandler();
|
||||
} else {
|
||||
PluginDescriptionFile pdfFile = this.getDescription();
|
||||
Logger.getLogger("Minecraft").warning("[NoCheat] version [" + pdfFile.getVersion() + "] couldn't find Permissions plugin. Fallback to 'isOp()' equals 'nocheat.*'");
|
||||
Logger.getLogger("Minecraft").warning("[NoCheat] version [" + pdfFile.getVersion() + "] couldn't find \"Permissions\" plugin. Falling back to SuperPerms system.");
|
||||
useNewPermissionSystem = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user