diff --git a/src/main/java/com/sk89q/worldguard/bukkit/listener/BuildPermissionListener.java b/src/main/java/com/sk89q/worldguard/bukkit/listener/BuildPermissionListener.java index 4a1feb63..2ad78b4b 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/listener/BuildPermissionListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/listener/BuildPermissionListener.java @@ -193,8 +193,12 @@ public void onUseItem(UseItemEvent event) { Player player = (Player) rootCause; Material material = event.getItemStack().getType(); + if (material.isBlock()) { + return; + } + if (!hasBuildPermission(player, "item." + material.name().toLowerCase() + ".use") - || hasBuildPermission(player, "item.use." + material.name().toLowerCase())) { + && !hasBuildPermission(player, "item.use." + material.name().toLowerCase())) { tellErrorMessage(player, event.getWorld()); event.setCancelled(true); }