mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Don't setup single plot worlds
This commit is contained in:
parent
0fdc5eafbd
commit
27eda9eb7c
1 changed files with 7 additions and 9 deletions
|
@ -131,15 +131,13 @@ public class BukkitSetupUtils extends SetupUtils {
|
||||||
for (ConfigurationNode step : steps) {
|
for (ConfigurationNode step : steps) {
|
||||||
worldSection.set(step.getConstant(), step.getValue());
|
worldSection.set(step.getConstant(), step.getValue());
|
||||||
}
|
}
|
||||||
PlotSquared.get().worlds.set("worlds." + world + ".generator.type", object.type);
|
if (!object.plotManager.endsWith(":single")) {
|
||||||
PlotSquared.get().worlds
|
PlotSquared.get().worlds.set("worlds." + world + ".generator.type", object.type);
|
||||||
.set("worlds." + world + ".generator.terrain", object.terrain);
|
PlotSquared.get().worlds.set("worlds." + world + ".generator.terrain", object.terrain);
|
||||||
PlotSquared.get().worlds
|
PlotSquared.get().worlds.set("worlds." + world + ".generator.plugin", object.plotManager);
|
||||||
.set("worlds." + world + ".generator.plugin", object.plotManager);
|
if (object.setupGenerator != null && !object.setupGenerator.equals(object.plotManager)) {
|
||||||
if (object.setupGenerator != null && !object.setupGenerator
|
PlotSquared.get().worlds.set("worlds." + world + ".generator.init", object.setupGenerator);
|
||||||
.equals(object.plotManager)) {
|
}
|
||||||
PlotSquared.get().worlds
|
|
||||||
.set("worlds." + world + ".generator.init", object.setupGenerator);
|
|
||||||
}
|
}
|
||||||
GeneratorWrapper<?> gen = SetupUtils.generators.get(object.setupGenerator);
|
GeneratorWrapper<?> gen = SetupUtils.generators.get(object.setupGenerator);
|
||||||
if (gen != null && gen.isFull()) {
|
if (gen != null && gen.isFull()) {
|
||||||
|
|
Loading…
Reference in a new issue