Added trap doors to USE flag

This commit is contained in:
Wizjany 2011-06-03 18:05:28 -04:00
parent 548dd0365c
commit 3c5bc507a5

View File

@ -135,6 +135,7 @@ public void handleBlockLeftClick(PlayerInteractEvent event) {
if (type == Material.STONE_BUTTON if (type == Material.STONE_BUTTON
|| type == Material.LEVER || type == Material.LEVER
|| type == Material.WOODEN_DOOR || type == Material.WOODEN_DOOR
|| type == Material.TRAP_DOOR
|| type == Material.NOTE_BLOCK) { || type == Material.NOTE_BLOCK) {
if (!plugin.getGlobalRegionManager().hasBypass(player, world) if (!plugin.getGlobalRegionManager().hasBypass(player, world)
&& !set.allows(DefaultFlag.USE) && !set.allows(DefaultFlag.USE)
@ -258,6 +259,7 @@ public void handleBlockRightClick(PlayerInteractEvent event) {
|| type == Material.DIODE_BLOCK_OFF || type == Material.DIODE_BLOCK_OFF
|| type == Material.DIODE_BLOCK_ON || type == Material.DIODE_BLOCK_ON
|| type == Material.WOODEN_DOOR || type == Material.WOODEN_DOOR
|| type == Material.TRAP_DOOR
|| type == Material.WORKBENCH) { || type == Material.WORKBENCH) {
if (!plugin.getGlobalRegionManager().hasBypass(player, world) if (!plugin.getGlobalRegionManager().hasBypass(player, world)
&& !set.allows(DefaultFlag.USE) && !set.allows(DefaultFlag.USE)