Resolves WORLDGUARD-2352 Anvils usable despite the use flag

This commit is contained in:
Dark Arc 2012-11-24 02:25:59 -05:00
parent 0b3c40dc3e
commit 8593f1c80a

View File

@ -216,7 +216,7 @@ public void onPlayerMove(PlayerMoveEvent event) {
}
}
}
}
}
@EventHandler
public void onPlayerGameModeChange(PlayerGameModeChangeEvent event) {
@ -694,7 +694,8 @@ private void handleBlockRightClick(PlayerInteractEvent event) {
|| type == BlockID.BREWING_STAND
|| type == BlockID.ENCHANTMENT_TABLE
|| type == BlockID.CAULDRON
|| type == BlockID.BEACON) {
|| type == BlockID.BEACON
|| type == BlockID.ANVIL) {
if (!plugin.getGlobalRegionManager().hasBypass(player, world)
&& !set.canBuild(localPlayer)
&& !set.allows(DefaultFlag.USE, localPlayer)) {