Fixed disguise options not working

This commit is contained in:
libraryaddict
2019-11-09 11:07:54 +13:00
parent 63a42ac7db
commit 9cc6889f7d
2 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ public class DisguiseParser {
case DROPPED_ITEM:
HashMap<String, Boolean> returns = new HashMap<>();
String beginning = "libsdisguises.options." + permNode + ".";
String beginning = "libsdisguises.options." + permNode.toLowerCase() + ".";
for (PermissionAttachmentInfo permission : sender.getEffectivePermissions()) {
String lowerPerm = permission.getPermission().toLowerCase();
@@ -143,7 +143,7 @@ public class DisguiseParser {
}
// If there is at least one whitelisted value, then they needed the whitelist to use it
return disguiseOptions.containsValue(true);
return !disguiseOptions.containsValue(true);
}
public static String getName(Entity entity) {