diff --git a/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java b/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java index 8098e3b..cd366fe 100644 --- a/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java +++ b/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java @@ -175,23 +175,6 @@ public class PlayerListener extends ModifyworldListener { this.checkPlayerInventory(player); } - @EventHandler(priority = EventPriority.LOW) - public void onPlayerInventoryEvent(InventoryClickEvent event) { - ItemStack item = event.getCursor(); - - if(item == null || item.getType() == Material.AIR || event.getSlotType() != InventoryType.SlotType.QUICKBAR) { - return; - } - - Player player = (Player)event.getWhoClicked(); - - int targetSlot = player.getInventory().getHeldItemSlot(); - - if(event.getSlot() == targetSlot && permissionDenied(player, "modifyworld.items.have", item)) { - event.setCancelled(true); - } - } - @EventHandler(priority = EventPriority.LOW) public void onPlayerInteractEntity(PlayerInteractEntityEvent event) { if (this.checkItemUse) {