mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 18:47:44 +01:00
Fixed placing stuff in flower pots. (derp)
This commit is contained in:
parent
17aa2a4153
commit
035ccee2a6
@ -733,12 +733,15 @@ 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) {
|
||||||
|
if (!plugin.getGlobalRegionManager().hasBypass(player, world)
|
||||||
|
&& !set.canBuild(localPlayer)) {
|
||||||
event.setUseItemInHand(Result.DENY);
|
event.setUseItemInHand(Result.DENY);
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
player.sendMessage(ChatColor.DARK_RED + "You're not allowed to plant that here.");
|
player.sendMessage(ChatColor.DARK_RED + "You're not allowed to plant that here.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (type == BlockID.BED) {
|
if (type == BlockID.BED) {
|
||||||
if (!plugin.getGlobalRegionManager().hasBypass(player, world)
|
if (!plugin.getGlobalRegionManager().hasBypass(player, world)
|
||||||
|
Loading…
Reference in New Issue
Block a user