From 55f2eb6dca6d4e379c55be225c9c1c555cb84726 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 14 Jun 2014 20:35:42 +1200 Subject: [PATCH] Let ops use all options --- .../libraryaddict/disguise/utilities/BaseDisguiseCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java b/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java index 66d9433d..144b79ea 100644 --- a/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java +++ b/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java @@ -53,8 +53,8 @@ public abstract class BaseDisguiseCommand implements CommandExecutor { perms.put(perm, permission.getValue()); } } - if (!perms.containsKey(permissionNode + "*") && sender.hasPermission(permissionNode + "*")) { - perms.put(permissionNode + "*", true); + if (!perms.containsKey(permissionNode + "*.*") && sender.hasPermission(permissionNode + "*.*")) { + perms.put(permissionNode + "*.*", true); } for (String perm : perms.keySet()) {