mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2026-01-26 23:46:00 +00:00
check all inventories
This commit is contained in:
@@ -47,11 +47,6 @@ public class InventoryOpen implements Listener {
|
||||
}
|
||||
|
||||
Inventory inventory = event.getInventory();
|
||||
// only check these
|
||||
if (inventory.getType() != InventoryType.CHEST || inventory.getType() != InventoryType.BARREL || inventory.getType() != InventoryType.SHULKER_BOX || inventory.getType() != InventoryType.ENDER_CHEST) {
|
||||
return;
|
||||
}
|
||||
|
||||
Player player = (Player) event.getPlayer();
|
||||
if (toolStats.config.getStringList("blacklist-worlds").contains(player.getWorld().getName())) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user