Fix inconsistent permission check

Closes #188
This commit is contained in:
Wesley Wolfe 2012-02-02 22:39:48 -06:00 committed by TomyLobo
parent c19ccf9278
commit 2351ade6fe

View File

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