From 3487d7d4c4a5440f45362b7b55f8047522f9e200 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Thu, 29 Jan 2015 17:03:54 +1100 Subject: [PATCH] Register commands --- .../src/main/java/com/intellectualcrafters/plot/PlotMain.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/PlotMain.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/PlotMain.java index 60bd2bf48..5bcb85ae3 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/PlotMain.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/PlotMain.java @@ -66,6 +66,7 @@ import org.bukkit.plugin.RegisteredServiceProvider; import org.bukkit.plugin.java.JavaPlugin; import com.intellectualcrafters.plot.commands.Buy; +import com.intellectualcrafters.plot.commands.Cluster; import com.intellectualcrafters.plot.commands.MainCommand; import com.intellectualcrafters.plot.commands.WE_Anywhere; import com.intellectualcrafters.plot.config.C; @@ -1243,6 +1244,9 @@ public class PlotMain extends JavaPlugin implements Listener { if (C.ENABLED.s().length() > 0) { sendConsoleSenderMessage(C.ENABLED); } + if (Settings.ENABLE_CLUSTERS) { + MainCommand.subCommands.add(new Cluster()); + } // Add tables to this one, if we create more :D final String[] tables = new String[]{"plot_trusted", "plot_ratings", "plot_comments"};