Added permission worldguard.region.wand to the region wand

Closes #930
This commit is contained in:
zml2008 2012-01-10 21:13:56 -08:00
parent 9d848e222b
commit d5d26168b3

View File

@ -547,7 +547,7 @@ private void handleBlockRightClick(PlayerInteractEvent event) {
ApplicableRegionSet set = mgr.getApplicableRegions(pt);
LocalPlayer localPlayer = plugin.wrapPlayer(player);
if (item.getTypeId() == wcfg.regionWand) {
if (item.getTypeId() == wcfg.regionWand && player.hasPermission("worldguard.region.wand")) {
if (set.size() > 0) {
player.sendMessage(ChatColor.YELLOW + "Can you build? "
+ (set.canBuild(localPlayer) ? "Yes" : "No"));