Let ops use all options

This commit is contained in:
libraryaddict 2014-06-14 20:35:42 +12:00
parent 832a2a4d30
commit 55f2eb6dca

View File

@ -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()) {