use of com.elmakers.mine.bukkit.magic.command.MagicServerCommandExecutor in project MagicPlugin by elBukkit.
the class MagicPlugin method initialize.
protected void initialize() {
controller.initialize();
TabExecutor magicCommand = new MagicCommandExecutor(this);
getCommand("magic").setExecutor(magicCommand);
getCommand("magic").setTabCompleter(magicCommand);
TabExecutor mageCommand = new MageCommandExecutor(this);
getCommand("mage").setExecutor(mageCommand);
getCommand("mage").setTabCompleter(mageCommand);
TabExecutor magicGiveCommand = new MagicGiveCommandExecutor(this);
getCommand("mgive").setExecutor(magicGiveCommand);
getCommand("mgive").setTabCompleter(magicGiveCommand);
TabExecutor magicItemCommand = new MagicItemCommandExecutor(this);
getCommand("mitem").setExecutor(magicItemCommand);
getCommand("mitem").setTabCompleter(magicItemCommand);
TabExecutor magicMobCommand = new MagicMobCommandExecutor(this);
getCommand("mmob").setExecutor(magicMobCommand);
getCommand("mmob").setTabCompleter(magicMobCommand);
TabExecutor magicMapCommand = new MagicMapCommandExecutor(this);
getCommand("mmap").setExecutor(magicMapCommand);
getCommand("mmap").setTabCompleter(magicMapCommand);
TabExecutor magicServerCommand = new MagicServerCommandExecutor(this);
getCommand("mserver").setExecutor(magicServerCommand);
getCommand("mserver").setTabCompleter(magicServerCommand);
TabExecutor magicSaveCommand = new MagicSaveCommandExecutor(this);
getCommand("msave").setExecutor(magicSaveCommand);
getCommand("msave").setTabCompleter(magicSaveCommand);
TabExecutor magicSkillsCommand = new MagicSkillsCommandExecutor(this);
getCommand("mskills").setExecutor(magicSkillsCommand);
getCommand("mskills").setTabCompleter(magicSkillsCommand);
TabExecutor castCommand = new CastCommandExecutor(this);
getCommand("cast").setExecutor(castCommand);
getCommand("cast").setTabCompleter(castCommand);
getCommand("castp").setExecutor(castCommand);
getCommand("castp").setTabCompleter(castCommand);
TabExecutor wandCommand = new WandCommandExecutor(this);
getCommand("wand").setExecutor(wandCommand);
getCommand("wand").setTabCompleter(wandCommand);
getCommand("wandp").setExecutor(wandCommand);
getCommand("wandp").setTabCompleter(wandCommand);
TabExecutor spellsCommand = new SpellsCommandExecutor(this);
getCommand("spells").setExecutor(spellsCommand);
TabExecutor rpCommand = new RPCommandExecutor(this);
getCommand("getrp").setExecutor(rpCommand);
CitizensController citizens = controller.getCitizens();
if (citizens != null) {
TabExecutor magicTraitCommand = new MagicTraitCommandExecutor(this, citizens);
getCommand("mtrait").setExecutor(magicTraitCommand);
getCommand("mtrait").setTabCompleter(magicTraitCommand);
}
TabExecutor magicConfigCommand = new MagicConfigCommandExecutor(this, controller);
getCommand("mconfig").setExecutor(magicConfigCommand);
getCommand("mconfig").setTabCompleter(magicConfigCommand);
}
Aggregations