Fix everyone has permission

This commit is contained in:
libraryaddict 2017-05-15 18:56:41 +12:00
parent 49f24c14b2
commit 7a9f1bd4cd

@ -426,7 +426,9 @@ public class DisguiseParser {
temp.putAll(rangeDisguises.get(type));
}
map.put(type, temp);
if (!temp.isEmpty()) {
map.put(type, temp);
}
}
return map;
@ -980,6 +982,9 @@ public class DisguiseParser {
public static boolean passesCheck(CommandSender sender, HashMap<ArrayList<String>, Boolean> theirPermissions,
ArrayList<String> usedOptions) {
if (theirPermissions == null)
return false;
boolean hasPermission = false;
for (ArrayList<String> list : theirPermissions.keySet()) {