From 7b9daea5159f0b82af5d24352c263a2d3c2c59c1 Mon Sep 17 00:00:00 2001 From: t3hk0d3 Date: Wed, 9 May 2012 00:55:26 +0400 Subject: [PATCH] Fixed "modifyworld.item.use" permission for more consistency (now its "modifyworld.items.use"). --- .../java/ru/tehkode/modifyworld/handlers/PlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }