mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 15:27:29 +00:00
Permissions allowed for Ops
This commit is contained in:
1 parent
90a788ed47
commit
ebb10bfe2d
1 file changed
+3
-2
@@ -108,9 +108,10 @@ public class CustomNpcsPermissions{
|
||||
|
||||
public static boolean hasPermission(EntityPlayer player, Permission permission){
|
||||
if(player != null){
|
||||
if(Developer.Instance.hasUniversal(player.getUniqueID())){
|
||||
if(NoppesUtilServer.isOp(player))
|
||||
return true;
|
||||
if(Developer.Instance.hasUniversal(player.getUniqueID()))
|
||||
return true;
|
||||
}
|
||||
if(permission != null){
|
||||
if(Instance.bukkit != null){
|
||||
return Instance.bukkitPermission(player.getCommandSenderName(), permission.name);
|
||||
|
||||
Reference in new issue
Block a user