Fixed unrestricted inventories (#2080)

This commit is contained in:
Leo Garbe 2020-04-22 12:18:48 +02:00 committed by GitHub
parent 510dfbdd23
commit 35a3ad1867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -475,7 +475,7 @@ public class PlayerListener implements Listener {
return false;
}
Set<String> whitelist = settings.getProperty(RestrictionSettings.UNRESTRICTED_INVENTORIES);
return whitelist.contains(ChatColor.stripColor(inventory.getTitle()));
return whitelist.contains(ChatColor.stripColor(inventory.getTitle()).toLowerCase());
}
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)