Merge pull request #34 from riking/patch-1

Restore single-star from 55f2eb6dca
This commit is contained in:
libraryaddict 2014-06-15 13:35:00 +12:00
commit fd8fa08c6e

View File

@ -53,6 +53,9 @@ 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);
}