mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-28 00:55:38 +00:00
Fix and Remove Universal Permissions
This commit is contained in:
1 parent
221f00ccf4
commit
2b1449b5f3
4 files changed
+23
-6
No files matched your search
@@ -133,9 +133,6 @@ public class CommandKamkeel extends CommandBase{
|
||||
}
|
||||
|
||||
if(sender instanceof EntityPlayer){
|
||||
if(Developer.Universal.contains(((EntityPlayer) sender).getUniqueID())){
|
||||
return true;
|
||||
}
|
||||
return CustomNpcsPermissions.hasCustomPermission((EntityPlayer) sender, getCommandPermission(command.getCommandName()));
|
||||
}
|
||||
|
||||
|
||||
@@ -141,9 +141,6 @@ public abstract class CommandKamkeelBase extends CommandBase{
|
||||
}
|
||||
|
||||
if(sender instanceof EntityPlayer){
|
||||
if(Developer.Universal.contains(((EntityPlayer) sender).getUniqueID())){
|
||||
return true;
|
||||
}
|
||||
return CustomNpcsPermissions.hasCustomPermission((EntityPlayer) sender, getSubCommandPermission(subCommand));
|
||||
}
|
||||
|
||||
|
||||
@@ -17,4 +17,20 @@ public class Developer {
|
||||
Universal.add(UUID.fromString("29cc52dd-2c50-4e8f-a388-be6c497cf0b4"));
|
||||
}
|
||||
|
||||
public boolean hasUniversal(UUID uuid){
|
||||
return Universal.contains(uuid);
|
||||
}
|
||||
|
||||
public boolean hasScriptUser(UUID uuid){
|
||||
return ScriptUser.contains(uuid);
|
||||
}
|
||||
|
||||
public boolean hasWandUser(UUID uuid){
|
||||
return WandUser.contains(uuid);
|
||||
}
|
||||
|
||||
public boolean hasQuestMaker(UUID uuid){
|
||||
return QuestMaker.contains(uuid);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user