diff --git a/src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java b/src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java index 061c629d..2af5caf0 100644 --- a/src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java +++ b/src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java @@ -96,6 +96,14 @@ public void onPlayerItem(PlayerItemEvent event) { Player player = event.getPlayer(); Block block = event.getBlockClicked(); ItemStack item = event.getItem(); + + if (!plugin.itemDurability) { + // Hoes + if (item.getTypeId() >= 290 && item.getTypeId() <= 294) { + item.setDamage((byte)-1); + player.setItemInHand(item); + } + } if (plugin.useRegions && !event.isBlock() && block != null) { Vector pt = toVector(block.getRelative(event.getBlockFace()));