mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-07-03 09:54:51 +02:00
Fixed placing stuff in flower pots. (derp)
This commit is contained in:
parent
17aa2a4153
commit
035ccee2a6
|
@ -733,10 +733,13 @@ private void handleBlockRightClick(PlayerInteractEvent event) {
|
||||||
|| item.getTypeId() == BlockID.CACTUS
|
|| item.getTypeId() == BlockID.CACTUS
|
||||||
|| item.getTypeId() == BlockID.LONG_GRASS
|
|| item.getTypeId() == BlockID.LONG_GRASS
|
||||||
|| item.getTypeId() == BlockID.DEAD_BUSH) {
|
|| item.getTypeId() == BlockID.DEAD_BUSH) {
|
||||||
event.setUseItemInHand(Result.DENY);
|
if (!plugin.getGlobalRegionManager().hasBypass(player, world)
|
||||||
event.setCancelled(true);
|
&& !set.canBuild(localPlayer)) {
|
||||||
player.sendMessage(ChatColor.DARK_RED + "You're not allowed to plant that here.");
|
event.setUseItemInHand(Result.DENY);
|
||||||
return;
|
event.setCancelled(true);
|
||||||
|
player.sendMessage(ChatColor.DARK_RED + "You're not allowed to plant that here.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user