diff --git a/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java b/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java index 02a05ed..63db893 100644 --- a/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java +++ b/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java @@ -189,7 +189,7 @@ public class PlayerListener extends ModifyworldListener { @EventHandler(priority = EventPriority.LOW) public void onPlayerInteractEntity(PlayerInteractEntityEvent event) { if (this.checkItemUse) { - if (!event.getPlayer().hasPermission("modifyworld.item.use." + getItemPermission(event.getPlayer().getItemInHand()) + ".on.entity." + getEntityName(event.getRightClicked()))) { + if (!event.getPlayer().hasPermission("modifyworld.items.use." + getItemPermission(event.getPlayer().getItemInHand()) + ".on.entity." + getEntityName(event.getRightClicked()))) { event.setCancelled(true); informPlayerAboutDenial(event.getPlayer()); }