/deleteclaim also restores nature, if configured to do so in survival worlds

Closes #11
This commit is contained in:
RoboMWM 2016-10-02 02:13:32 -07:00
parent d7355b8182
commit b07b8a678a

View File

@ -1888,7 +1888,7 @@ public class GriefPrevention extends JavaPlugin
this.dataStore.deleteClaim(claim, true, true); this.dataStore.deleteClaim(claim, true, true);
//if in a creative mode world, /restorenature the claim //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); GriefPrevention.instance.restoreClaim(claim, 0);
} }