Fix everyone has permission

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

View File

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