From a8915ca870877c2369a0b6980457534df5a2ac4b Mon Sep 17 00:00:00 2001 From: boy0001 Date: Tue, 10 Feb 2015 20:50:27 +1100 Subject: [PATCH] Allow partial only if enabled --- .../intellectualcrafters/plot/commands/Setup.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Setup.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Setup.java index 8a412af0f..a59bde4ac 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Setup.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Setup.java @@ -39,6 +39,7 @@ import org.bukkit.plugin.Plugin; import com.intellectualcrafters.plot.PlotMain; import com.intellectualcrafters.plot.config.C; import com.intellectualcrafters.plot.config.ConfigurationNode; +import com.intellectualcrafters.plot.config.Settings; import com.intellectualcrafters.plot.object.PlotGenerator; import com.intellectualcrafters.plot.util.PlayerFunctions; @@ -125,14 +126,22 @@ public class Setup extends SubCommand { } object.generator = args[0]; object.current++; + + String partial = Settings.ENABLE_CLUSTERS ? "\n&8 - &7PARTIAL&8 - &7Vanilla with clusters of plots" : ""; PlayerFunctions.sendMessage(plr, "&6What world type do you want?" + "\n&8 - &2DEFAULT&8 - &7Standard plot generation" + "\n&8 - &7AUGMENTED&8 - &7Plot generation with terrain" - + "\n&8 - &7PARTIAL&8 - &7Vanilla with clusters of plots"); + + partial); break; } case 1: { // choose world type - List types = Arrays.asList(new String[] {"default", "augmented", "partial"}); + List types; + if (Settings.ENABLE_CLUSTERS) { + types = Arrays.asList(new String[] {"default", "augmented", "partial"}); + } + else { + types = Arrays.asList(new String[] {"default", "augmented"}); + } if (args.length != 1 || !types.contains(args[0].toLowerCase())) { PlayerFunctions.sendMessage(plr, "&cYou must choose a world type!" + "\n&8 - &2DEFAULT&8 - &7Standard plot generation"