From 9cc4835383a4aa50619fe06cc40e2d29be042efb Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Thu, 16 Jul 2015 19:03:37 -0700 Subject: [PATCH] No stick messages in non-claim worlds. In "disabled" claims mode worlds, right clicking with the stick will not display any message. --- src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java b/src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java index ab71736..153e21f 100644 --- a/src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java +++ b/src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java @@ -1709,7 +1709,10 @@ class PlayerEventHandler implements Listener //if he's investigating a claim else if(materialInHand == GriefPrevention.instance.config_claims_investigationTool) { - //if holding shift (sneaking), show all claims in area + //if claims are disabled in this world, do nothing + if(!GriefPrevention.instance.claimsEnabledForWorld(player.getWorld())) return; + + //if holding shift (sneaking), show all claims in area if(player.isSneaking() && player.hasPermission("griefprevention.visualizenearbyclaims")) { //find nearby claims