Search in sources :

Example 1 with ResidentCommand

use of com.palmergames.bukkit.towny.command.ResidentCommand 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));
}
Also used : InviteCommand(com.palmergames.bukkit.towny.command.InviteCommand) NationCommand(com.palmergames.bukkit.towny.command.NationCommand) ResidentCommand(com.palmergames.bukkit.towny.command.ResidentCommand) TownyWorldCommand(com.palmergames.bukkit.towny.command.TownyWorldCommand) CommandExecutor(org.bukkit.command.CommandExecutor) TownCommand(com.palmergames.bukkit.towny.command.TownCommand) PlotCommand(com.palmergames.bukkit.towny.command.PlotCommand) TownyAdminCommand(com.palmergames.bukkit.towny.command.TownyAdminCommand) TownyCommand(com.palmergames.bukkit.towny.command.TownyCommand)

Aggregations

InviteCommand (com.palmergames.bukkit.towny.command.InviteCommand)1 NationCommand (com.palmergames.bukkit.towny.command.NationCommand)1 PlotCommand (com.palmergames.bukkit.towny.command.PlotCommand)1 ResidentCommand (com.palmergames.bukkit.towny.command.ResidentCommand)1 TownCommand (com.palmergames.bukkit.towny.command.TownCommand)1 TownyAdminCommand (com.palmergames.bukkit.towny.command.TownyAdminCommand)1 TownyCommand (com.palmergames.bukkit.towny.command.TownyCommand)1 TownyWorldCommand (com.palmergames.bukkit.towny.command.TownyWorldCommand)1 CommandExecutor (org.bukkit.command.CommandExecutor)1