mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-24 11:36:11 +01:00
parent
9d848e222b
commit
d5d26168b3
@ -547,7 +547,7 @@ private void handleBlockRightClick(PlayerInteractEvent event) {
|
|||||||
ApplicableRegionSet set = mgr.getApplicableRegions(pt);
|
ApplicableRegionSet set = mgr.getApplicableRegions(pt);
|
||||||
LocalPlayer localPlayer = plugin.wrapPlayer(player);
|
LocalPlayer localPlayer = plugin.wrapPlayer(player);
|
||||||
|
|
||||||
if (item.getTypeId() == wcfg.regionWand) {
|
if (item.getTypeId() == wcfg.regionWand && player.hasPermission("worldguard.region.wand")) {
|
||||||
if (set.size() > 0) {
|
if (set.size() > 0) {
|
||||||
player.sendMessage(ChatColor.YELLOW + "Can you build? "
|
player.sendMessage(ChatColor.YELLOW + "Can you build? "
|
||||||
+ (set.canBuild(localPlayer) ? "Yes" : "No"));
|
+ (set.canBuild(localPlayer) ? "Yes" : "No"));
|
||||||
|
Loading…
Reference in New Issue
Block a user