From 3c5bc507a54bd56bf22801390ddae8ec948adbb8 Mon Sep 17 00:00:00 2001 From: Wizjany Date: Fri, 3 Jun 2011 18:05:28 -0400 Subject: [PATCH] Added trap doors to USE flag --- .../com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java index 8cc48542..64d15949 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java @@ -135,6 +135,7 @@ public void handleBlockLeftClick(PlayerInteractEvent event) { if (type == Material.STONE_BUTTON || type == Material.LEVER || type == Material.WOODEN_DOOR + || type == Material.TRAP_DOOR || type == Material.NOTE_BLOCK) { if (!plugin.getGlobalRegionManager().hasBypass(player, world) && !set.allows(DefaultFlag.USE) @@ -258,6 +259,7 @@ public void handleBlockRightClick(PlayerInteractEvent event) { || type == Material.DIODE_BLOCK_OFF || type == Material.DIODE_BLOCK_ON || type == Material.WOODEN_DOOR + || type == Material.TRAP_DOOR || type == Material.WORKBENCH) { if (!plugin.getGlobalRegionManager().hasBypass(player, world) && !set.allows(DefaultFlag.USE)