From bdb423970eeb78f9b6a881c1296c5229649e38d9 Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Mon, 26 Jan 2015 16:32:00 -0800 Subject: [PATCH] Removed option requiring permission to claim. Now it's always true, and all players have that permission by default. One more seldom-used config option removed! --- src/me/ryanhamshire/GriefPrevention/GriefPrevention.java | 3 --- src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java b/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java index 99c5411..c0d34f1 100644 --- a/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java +++ b/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java @@ -91,7 +91,6 @@ public class GriefPrevention extends JavaPlugin public int config_claims_expirationDays; //how many days of inactivity before a player loses his claims public int config_claims_automaticClaimsForNewPlayersRadius; //how big automatic new player claims (when they place a chest) should be. 0 to disable - public boolean config_claims_creationRequiresPermission; //whether creating claims with the shovel requires a permission public int config_claims_claimsExtendIntoGroundDistance; //how far below the shoveled block a new claim will reach public int config_claims_minSize; //minimum width and height for non-admin claims @@ -487,7 +486,6 @@ public class GriefPrevention extends JavaPlugin this.config_claims_abandonReturnRatio = config.getDouble("GriefPrevention.Claims.AbandonReturnRatio", 1); this.config_claims_automaticClaimsForNewPlayersRadius = config.getInt("GriefPrevention.Claims.AutomaticNewPlayerClaimsRadius", 4); this.config_claims_claimsExtendIntoGroundDistance = Math.abs(config.getInt("GriefPrevention.Claims.ExtendIntoGroundDistance", 5)); - this.config_claims_creationRequiresPermission = config.getBoolean("GriefPrevention.Claims.CreationRequiresPermission", false); this.config_claims_minSize = config.getInt("GriefPrevention.Claims.MinimumSize", 10); this.config_claims_maxDepth = config.getInt("GriefPrevention.Claims.MaximumDepth", 0); this.config_claims_chestClaimExpirationDays = config.getInt("GriefPrevention.Claims.Expiration.ChestClaimDays", 7); @@ -696,7 +694,6 @@ public class GriefPrevention extends JavaPlugin outConfig.set("GriefPrevention.Claims.AbandonReturnRatio", this.config_claims_abandonReturnRatio); outConfig.set("GriefPrevention.Claims.AutomaticNewPlayerClaimsRadius", this.config_claims_automaticClaimsForNewPlayersRadius); outConfig.set("GriefPrevention.Claims.ExtendIntoGroundDistance", this.config_claims_claimsExtendIntoGroundDistance); - outConfig.set("GriefPrevention.Claims.CreationRequiresPermission", this.config_claims_creationRequiresPermission); outConfig.set("GriefPrevention.Claims.MinimumSize", this.config_claims_minSize); outConfig.set("GriefPrevention.Claims.MaximumDepth", this.config_claims_maxDepth); outConfig.set("GriefPrevention.Claims.InvestigationTool", this.config_claims_investigationTool.name()); diff --git a/src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java b/src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java index 7e353f1..61df95a 100644 --- a/src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java +++ b/src/me/ryanhamshire/GriefPrevention/PlayerEventHandler.java @@ -1809,7 +1809,7 @@ class PlayerEventHandler implements Listener } //if the player doesn't have claims permission, don't do anything - if(GriefPrevention.instance.config_claims_creationRequiresPermission && !player.hasPermission("griefprevention.createclaims")) + if(!player.hasPermission("griefprevention.createclaims")) { GriefPrevention.sendMessage(player, TextMode.Err, Messages.NoCreateClaimPermission); return;