Fix conflicting piston settings (#907)

This commit is contained in:
Adam
2020-07-25 11:50:18 -07:00
committed by GitHub
parent 085f335559
commit ac93505e2f
@@ -625,6 +625,10 @@ public class GriefPrevention extends JavaPlugin
this.config_limitTreeGrowth = config.getBoolean("GriefPrevention.LimitTreeGrowth", false);
this.config_checkPistonMovement = config.getBoolean("GriefPrevention.CheckPistonMovement", true);
this.config_pistonsInClaimsOnly = config.getBoolean("GriefPrevention.LimitPistonsToLandClaims", true);
if (!this.config_checkPistonMovement && this.config_pistonsInClaimsOnly) {
AddLogEntry("Error: You have enabled LimitPistonsToLandClaims, but CheckPistonMovement is off!");
this.config_pistonsInClaimsOnly = false;
}
this.config_fireSpreads = config.getBoolean("GriefPrevention.FireSpreads", false);
this.config_fireDestroys = config.getBoolean("GriefPrevention.FireDestroys", false);