Fix everyone has permission
This commit is contained in:
parent
49f24c14b2
commit
7a9f1bd4cd
@ -426,8 +426,10 @@ public class DisguiseParser {
|
|||||||
temp.putAll(rangeDisguises.get(type));
|
temp.putAll(rangeDisguises.get(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!temp.isEmpty()) {
|
||||||
map.put(type, temp);
|
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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user