From ba327c89066b8af1ca23c673e143e67a98b0f192 Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Tue, 15 Mar 2016 16:24:38 -0700 Subject: [PATCH] Fixed golden shovel creating grass paths. New problem in 1.9. Fix: GP's claim modification tool now exclusively works with GP and doesn't have any other functionality (Vanilla or other plugins, unless other plugins subscribe to cancelled player interact events). --- src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java b/src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java index ef07104..98a2a88 100644 --- a/src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java +++ b/src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java @@ -1989,6 +1989,8 @@ class PlayerEventHandler implements Listener //if it's a golden shovel else if(materialInHand != GriefPrevention.instance.config_claims_modificationTool) return; + event.setCancelled(true); //GriefPrevention exclusively reserves this tool (e.g. no grass path creation for golden shovel) + //disable golden shovel while under siege if(playerData == null) playerData = this.dataStore.getPlayerData(player.getUniqueId()); if(playerData.siegeData != null)