Fix conflicting piston settings (#907)

This commit is contained in:
Adam 2020-07-25 14:50:18 -04:00 committed by GitHub
parent 085f335559
commit ac93505e2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);