Search in sources :

Example 1 with MagicSkillsCommandExecutor

use of com.elmakers.mine.bukkit.magic.command.MagicSkillsCommandExecutor 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);
}
Also used : WandCommandExecutor(com.elmakers.mine.bukkit.magic.command.WandCommandExecutor) MagicSaveCommandExecutor(com.elmakers.mine.bukkit.magic.command.MagicSaveCommandExecutor) SpellsCommandExecutor(com.elmakers.mine.bukkit.magic.command.SpellsCommandExecutor) MagicMapCommandExecutor(com.elmakers.mine.bukkit.magic.command.MagicMapCommandExecutor) MagicSkillsCommandExecutor(com.elmakers.mine.bukkit.magic.command.MagicSkillsCommandExecutor) CastCommandExecutor(com.elmakers.mine.bukkit.magic.command.CastCommandExecutor) MagicCommandExecutor(com.elmakers.mine.bukkit.magic.command.MagicCommandExecutor) MagicGiveCommandExecutor(com.elmakers.mine.bukkit.magic.command.MagicGiveCommandExecutor) MageCommandExecutor(com.elmakers.mine.bukkit.magic.command.MageCommandExecutor) MagicMobCommandExecutor(com.elmakers.mine.bukkit.magic.command.MagicMobCommandExecutor) CitizensController(com.elmakers.mine.bukkit.citizens.CitizensController) MagicTraitCommandExecutor(com.elmakers.mine.bukkit.magic.command.MagicTraitCommandExecutor) MagicItemCommandExecutor(com.elmakers.mine.bukkit.magic.command.MagicItemCommandExecutor) RPCommandExecutor(com.elmakers.mine.bukkit.magic.command.RPCommandExecutor) MagicServerCommandExecutor(com.elmakers.mine.bukkit.magic.command.MagicServerCommandExecutor) MagicConfigCommandExecutor(com.elmakers.mine.bukkit.magic.command.MagicConfigCommandExecutor) TabExecutor(org.bukkit.command.TabExecutor)

Aggregations

CitizensController (com.elmakers.mine.bukkit.citizens.CitizensController)1 CastCommandExecutor (com.elmakers.mine.bukkit.magic.command.CastCommandExecutor)1 MageCommandExecutor (com.elmakers.mine.bukkit.magic.command.MageCommandExecutor)1 MagicCommandExecutor (com.elmakers.mine.bukkit.magic.command.MagicCommandExecutor)1 MagicConfigCommandExecutor (com.elmakers.mine.bukkit.magic.command.MagicConfigCommandExecutor)1 MagicGiveCommandExecutor (com.elmakers.mine.bukkit.magic.command.MagicGiveCommandExecutor)1 MagicItemCommandExecutor (com.elmakers.mine.bukkit.magic.command.MagicItemCommandExecutor)1 MagicMapCommandExecutor (com.elmakers.mine.bukkit.magic.command.MagicMapCommandExecutor)1 MagicMobCommandExecutor (com.elmakers.mine.bukkit.magic.command.MagicMobCommandExecutor)1 MagicSaveCommandExecutor (com.elmakers.mine.bukkit.magic.command.MagicSaveCommandExecutor)1 MagicServerCommandExecutor (com.elmakers.mine.bukkit.magic.command.MagicServerCommandExecutor)1 MagicSkillsCommandExecutor (com.elmakers.mine.bukkit.magic.command.MagicSkillsCommandExecutor)1 MagicTraitCommandExecutor (com.elmakers.mine.bukkit.magic.command.MagicTraitCommandExecutor)1 RPCommandExecutor (com.elmakers.mine.bukkit.magic.command.RPCommandExecutor)1 SpellsCommandExecutor (com.elmakers.mine.bukkit.magic.command.SpellsCommandExecutor)1 WandCommandExecutor (com.elmakers.mine.bukkit.magic.command.WandCommandExecutor)1 TabExecutor (org.bukkit.command.TabExecutor)1