From 27eda9eb7cdc650a04d882faf93c7c857e3069ce Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 17 Apr 2019 14:00:01 +1000 Subject: [PATCH] Don't setup single plot worlds --- .../bukkit/util/BukkitSetupUtils.java | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitSetupUtils.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitSetupUtils.java index efdb034cd..5eb2e3fbc 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitSetupUtils.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitSetupUtils.java @@ -131,15 +131,13 @@ public class BukkitSetupUtils extends SetupUtils { for (ConfigurationNode step : steps) { worldSection.set(step.getConstant(), step.getValue()); } - PlotSquared.get().worlds.set("worlds." + world + ".generator.type", object.type); - PlotSquared.get().worlds - .set("worlds." + world + ".generator.terrain", object.terrain); - PlotSquared.get().worlds - .set("worlds." + world + ".generator.plugin", object.plotManager); - if (object.setupGenerator != null && !object.setupGenerator - .equals(object.plotManager)) { - PlotSquared.get().worlds - .set("worlds." + world + ".generator.init", object.setupGenerator); + if (!object.plotManager.endsWith(":single")) { + PlotSquared.get().worlds.set("worlds." + world + ".generator.type", object.type); + PlotSquared.get().worlds.set("worlds." + world + ".generator.terrain", object.terrain); + PlotSquared.get().worlds.set("worlds." + world + ".generator.plugin", object.plotManager); + if (object.setupGenerator != null && !object.setupGenerator.equals(object.plotManager)) { + PlotSquared.get().worlds.set("worlds." + world + ".generator.init", object.setupGenerator); + } } GeneratorWrapper gen = SetupUtils.generators.get(object.setupGenerator); if (gen != null && gen.isFull()) {