From b07b8a678a7a80123c35c395e8ee64ba899a7927 Mon Sep 17 00:00:00 2001 From: RoboMWM Date: Sun, 2 Oct 2016 02:13:32 -0700 Subject: [PATCH] /deleteclaim also restores nature, if configured to do so in survival worlds Closes #11 --- src/me/ryanhamshire/GriefPrevention/GriefPrevention.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java b/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java index 14e78b3..00bca9f 100644 --- a/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java +++ b/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java @@ -1888,7 +1888,7 @@ public class GriefPrevention extends JavaPlugin this.dataStore.deleteClaim(claim, true, true); //if in a creative mode world, /restorenature the claim - if(GriefPrevention.instance.creativeRulesApply(claim.getLesserBoundaryCorner())) + if(GriefPrevention.instance.creativeRulesApply(claim.getLesserBoundaryCorner()) || GriefPrevention.instance.config_claims_survivalAutoNatureRestoration) { GriefPrevention.instance.restoreClaim(claim, 0); }