mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 23:37:32 +00:00
Is Script Dev logic change
This commit is contained in:
1 parent
f0ab36e4a1
commit
a459a27872
1 file changed
+4
-4
@@ -174,11 +174,11 @@ public class ConfigScript
|
||||
|
||||
public static boolean canScript(EntityPlayer player, CustomNpcsPermissions.Permission perm) {
|
||||
boolean isOp = MinecraftServer.getServer().getConfigurationManager().func_152596_g(player.getGameProfile());
|
||||
if(ScriptOpsOnly){
|
||||
return isOp;
|
||||
}
|
||||
|
||||
boolean scriptDev = isScriptDev(player);
|
||||
if(ScriptOpsOnly){
|
||||
return isOp || scriptDev;
|
||||
}
|
||||
|
||||
return scriptDev || CustomNpcsPermissions.hasPermission(player, perm);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user