Chest claims require createclaims permission.
This commit is contained in:
parent
ce16324209
commit
9285e475a7
|
|
@ -241,7 +241,7 @@ public class BlockEventHandler implements Listener
|
||||||
//FEATURE: automatically create a claim when a player who has no claims places a chest
|
//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
|
//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 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)
|
if(GriefPrevention.instance.config_claims_preventTheft && block.getY() < GriefPrevention.instance.config_claims_maxDepth)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user