use of com.palmergames.bukkit.towny.command.TownyWorldCommand in project Towny by TownyAdvanced.
the class Towny method registerCommands.
private void registerCommands() {
getCommand("townyadmin").setExecutor(new TownyAdminCommand(this));
getCommand("townyworld").setExecutor(new TownyWorldCommand(this));
getCommand("resident").setExecutor(new ResidentCommand(this));
getCommand("towny").setExecutor(new TownyCommand(this));
CommandExecutor townCommandExecutor = new TownCommand(this);
getCommand("town").setExecutor(townCommandExecutor);
// This is needed because the vanilla "/t" tab completer needs to be overridden.
getCommand("t").setTabCompleter((TabCompleter) townCommandExecutor);
getCommand("nation").setExecutor(new NationCommand(this));
getCommand("plot").setExecutor(new PlotCommand(this));
getCommand("invite").setExecutor(new InviteCommand(this));
}
Aggregations