diff --git a/modules/betterchairs-api/src/main/java/de/sprax2013/betterchairs/ChairManager.java b/modules/betterchairs-api/src/main/java/de/sprax2013/betterchairs/ChairManager.java index 2b3317e..8ecc9b2 100644 --- a/modules/betterchairs-api/src/main/java/de/sprax2013/betterchairs/ChairManager.java +++ b/modules/betterchairs-api/src/main/java/de/sprax2013/betterchairs/ChairManager.java @@ -270,6 +270,9 @@ public boolean hasChairsDisabled(UUID uuid) { if (value == null) { value = Settings.REMEMBER_IF_PLAYER_DISABLED_CHAIRS.getValueAsBoolean() && new File(this.disabledForDir, uuid.toString()).exists(); + if (!value) { + value = Settings.HAVE_CHAIRS_DISABLED_FOR_PLAYER_BY_DEFAULT.getValueAsBoolean(); + } if (Bukkit.getPlayer(uuid).isOnline()) { this.disabled.put(uuid, value); diff --git a/modules/betterchairs-api/src/main/java/de/sprax2013/betterchairs/Settings.java b/modules/betterchairs-api/src/main/java/de/sprax2013/betterchairs/Settings.java index b4f7f71..8b4be8f 100644 --- a/modules/betterchairs-api/src/main/java/de/sprax2013/betterchairs/Settings.java +++ b/modules/betterchairs-api/src/main/java/de/sprax2013/betterchairs/Settings.java @@ -60,6 +60,10 @@ public class Settings { "Enable this if you want players to be able to sit on chairs\n" + "while other plugins (like WorldGuard or PlotSquared) are not\n" + "allowing interactions/use with the chair blocks."); + public static final ConfigEntry HAVE_CHAIRS_DISABLED_FOR_PLAYER_BY_DEFAULT = config.createEntry( + "Chairs.HaveChairsDisabledForPlayerByDefault", false, + "This requires players to use /toggleChairs or /BetterChairs toggle\n" + + "before they can right-click on chair blocks."); public static final ConfigEntry REMEMBER_IF_PLAYER_DISABLED_CHAIRS = config.createEntry( "Chairs.RememberIfPlayerDisabledChairsAfterRelogin", true, "Enable this if you want BetterChairs to remember a player who used /bc after a plugin reload or him rejoining")