Register commands

This commit is contained in:
boy0001 2015-01-29 17:03:54 +11:00
parent cafaa31228
commit 3487d7d4c4

View File

@ -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"};