Added region protection to sign change event.

This commit is contained in:
sk89q 2011-06-26 00:24:09 -07:00
parent b5088340fd
commit 44b98165ba

View File

@ -634,6 +634,12 @@ public void onSignChange(SignChangeEvent event) {
return; return;
} }
} }
if (!plugin.getGlobalRegionManager().canBuild(player, event.getBlock())) {
player.sendMessage(ChatColor.DARK_RED + "You don't have permission for this area.");
event.setCancelled(true);
return;
}
} }
/** /**