diff --git a/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/BukkitWorldConfiguration.java b/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/BukkitWorldConfiguration.java index 553d4bb9..539721ef 100644 --- a/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/BukkitWorldConfiguration.java +++ b/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/BukkitWorldConfiguration.java @@ -178,6 +178,11 @@ public void loadConfiguration() { simulateSponge = getBoolean("simulation.sponge.enable", false); spongeRadius = Math.max(1, getInt("simulation.sponge.radius", 3)) - 1; redstoneSponges = getBoolean("simulation.sponge.redstone", false); + if (simulateSponge) { + log.warning("Sponge simulation is deprecated for removal in a future version. We recommend using CraftBook's sponge simulation instead."); + } else { + config.removeProperty("simulation.sponge"); + } pumpkinScuba = getBoolean("default.pumpkin-scuba", false); disableHealthRegain = getBoolean("default.disable-health-regain", false); @@ -237,6 +242,11 @@ public void loadConfiguration() { signChestProtection = getBoolean("chest-protection.enable", false); disableSignChestProtectionCheck = getBoolean("chest-protection.disable-off-check", false); + if (signChestProtection) { + log.warning("Sign-based chest protection is deprecated for removal in a future version. See https://worldguard.enginehub.org/en/latest/chest-protection/ for details."); + } else { + config.removeProperty("chest-protection"); + } disableCreatureCropTrampling = getBoolean("crops.disable-creature-trampling", false); disablePlayerCropTrampling = getBoolean("crops.disable-player-trampling", false); diff --git a/worldguard-core/src/main/java/com/sk89q/worldguard/config/YamlConfigurationManager.java b/worldguard-core/src/main/java/com/sk89q/worldguard/config/YamlConfigurationManager.java index 801fcf38..d9952cb5 100644 --- a/worldguard-core/src/main/java/com/sk89q/worldguard/config/YamlConfigurationManager.java +++ b/worldguard-core/src/main/java/com/sk89q/worldguard/config/YamlConfigurationManager.java @@ -93,6 +93,12 @@ public void load() { String sqlUsername = config.getString("regions.sql.username", "worldguard"); String sqlPassword = config.getString("regions.sql.password", "worldguard"); String sqlTablePrefix = config.getString("regions.sql.table-prefix", ""); + if (!useSqlDatabase) { + config.removeProperty("regions.sql"); + } else { + log.warning("SQL support for WorldGuard region storage is deprecated for removal in a future version. Please migrate to YAML storage."); + log.warning("For details, see https://worldguard.enginehub.org/en/latest/regions/storage/"); + } DataSourceConfig dataSourceConfig = new DataSourceConfig(sqlDsn, sqlUsername, sqlPassword, sqlTablePrefix); SQLDriver sqlDriver = new SQLDriver(dataSourceConfig);