From ac93505e2fcae032a37baa7038119a871236b0e4 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 25 Jul 2020 14:50:18 -0400 Subject: [PATCH] Fix conflicting piston settings (#907) --- .../java/me/ryanhamshire/GriefPrevention/GriefPrevention.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java b/src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java index efcb293..d9c03e2 100644 --- a/src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java +++ b/src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java @@ -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);