From 9285e475a775cd5cf8999befb1e6bd5d1948856e Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Fri, 15 Apr 2016 20:45:30 -0700 Subject: [PATCH] Chest claims require createclaims permission. --- src/me/ryanhamshire/GriefPrevention/BlockEventHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/ryanhamshire/GriefPrevention/BlockEventHandler.java b/src/me/ryanhamshire/GriefPrevention/BlockEventHandler.java index 55aa4f0..15507e3 100644 --- a/src/me/ryanhamshire/GriefPrevention/BlockEventHandler.java +++ b/src/me/ryanhamshire/GriefPrevention/BlockEventHandler.java @@ -241,7 +241,7 @@ public class BlockEventHandler implements Listener //FEATURE: automatically create a claim when a player who has no claims places a chest //otherwise if there's no claim, the player is placing a chest, and new player automatic claims are enabled - else if(block.getType() == Material.CHEST && GriefPrevention.instance.config_claims_automaticClaimsForNewPlayersRadius > -1 && GriefPrevention.instance.claimsEnabledForWorld(block.getWorld())) + else if(GriefPrevention.instance.config_claims_automaticClaimsForNewPlayersRadius > -1 && player.hasPermission("griefprevention.createclaims") && block.getType() == Material.CHEST) { //if the chest is too deep underground, don't create the claim and explain why if(GriefPrevention.instance.config_claims_preventTheft && block.getY() < GriefPrevention.instance.config_claims_maxDepth)