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).
This commit is contained in:
parent
b83fc4a80c
commit
ba327c8906
|
|
@ -1989,6 +1989,8 @@ class PlayerEventHandler implements Listener
|
||||||
//if it's a golden shovel
|
//if it's a golden shovel
|
||||||
else if(materialInHand != GriefPrevention.instance.config_claims_modificationTool) return;
|
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
|
//disable golden shovel while under siege
|
||||||
if(playerData == null) playerData = this.dataStore.getPlayerData(player.getUniqueId());
|
if(playerData == null) playerData = this.dataStore.getPlayerData(player.getUniqueId());
|
||||||
if(playerData.siegeData != null)
|
if(playerData.siegeData != null)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user