Fixed unrestricted inventories (#2080)
This commit is contained in:
parent
510dfbdd23
commit
35a3ad1867
@ -475,7 +475,7 @@ public class PlayerListener implements Listener {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Set<String> whitelist = settings.getProperty(RestrictionSettings.UNRESTRICTED_INVENTORIES);
|
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)
|
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user