Search in sources :

Example 1 with ObjectMetadataCommand

use of mc.dragons.tools.content.command.gameobject.ObjectMetadataCommand in project DragonsOnline by UniverseCraft.

the class DragonsContentTools method onEnable.

public void onEnable() {
    enableDebugLogging();
    saveDefaultConfig();
    PUSH_FOLDER = getConfig().getString("push-folder", "C:\\DragonsPush\\");
    Dragons dragons = getDragonsInstance();
    COLoader coLoader = new COLoader(dragons);
    dragons.getLightweightLoaderRegistry().register(new AuditLogLoader(dragons.getMongoConfig()));
    dragons.getLightweightLoaderRegistry().register(new HologramLoader(dragons.getMongoConfig()));
    dragons.getLightweightLoaderRegistry().register(coLoader);
    dragons.getUserHookRegistry().registerHook(new ContentUserHook(coLoader));
    getCommand("region").setExecutor(new RegionCommand());
    getCommand("npc").setExecutor(new NPCCommand());
    getCommand("item").setExecutor(new ItemCommand());
    getCommand("floor").setExecutor(new FloorCommand());
    getCommand("clear").setExecutor(new ClearInventoryCommand());
    getCommand("testquest").setExecutor(new TestQuestCommand());
    getCommand("quest").setExecutor(new QuestCommand());
    getCommand("rename").setExecutor(new RenameCommand());
    getCommand("relore").setExecutor(new ReloreCommand());
    getCommand("restat").setExecutor(new RestatCommand());
    getCommand("resetprofile").setExecutor(new ResetProfileCommand());
    getCommand("placeholder").setExecutor(new PlaceholderCommand());
    getCommand("fixed").setExecutor(new FixedCommand());
    getCommand("objmeta").setExecutor(new ObjectMetadataCommand());
    getCommand("deletenpc").setExecutor(new DeleteNPCCommand());
    getCommand("hologram").setExecutor(new HologramCommand(this));
    getCommand("sign").setExecutor(new SignCommand());
    CommandExecutor gamemodeCommandExecutor = new GamemodeCommand();
    getCommand("gamemode").setExecutor(gamemodeCommandExecutor);
    getCommand("gma").setExecutor(gamemodeCommandExecutor);
    getCommand("gmc").setExecutor(gamemodeCommandExecutor);
    getCommand("gms").setExecutor(gamemodeCommandExecutor);
    getCommand("gotofloor").setExecutor(new GoToFloorCommand());
    getCommand("updatestats").setExecutor(new UpdateStatsCommand());
    CommandExecutor speedCommand = new SpeedCommand();
    getCommand("speed").setExecutor(speedCommand);
    getCommand("flyspeed").setExecutor(speedCommand);
    getCommand("walkspeed").setExecutor(speedCommand);
    CommandExecutor warpCommandsExecutor = new WarpCommands();
    getCommand("delwarp").setExecutor(warpCommandsExecutor);
    getCommand("setwarp").setExecutor(warpCommandsExecutor);
    getCommand("warp").setExecutor(warpCommandsExecutor);
    getCommand("warps").setExecutor(warpCommandsExecutor);
    CommandExecutor coCommandsExecutor = new CommunityObjectiveCommands(coLoader);
    getCommand("createobjective").setExecutor(coCommandsExecutor);
    getCommand("listobjectives").setExecutor(coCommandsExecutor);
    getCommand("unlockobjective").setExecutor(coCommandsExecutor);
    getCommand("lockobjective").setExecutor(coCommandsExecutor);
    getCommand("completeobjective").setExecutor(coCommandsExecutor);
    getCommand("failobjective").setExecutor(coCommandsExecutor);
    getCommand("deleteobjective").setExecutor(coCommandsExecutor);
    getCommand("reloadobjectives").setExecutor(coCommandsExecutor);
    Addon npcIdentifierAddon = new NPCIdentifierAddon();
    dragons.getAddonRegistry().register(npcIdentifierAddon);
    npcIdentifierAddon.apply();
    Bukkit.getPluginManager().registerEvents(new ContentToolsListeners(), this);
}
Also used : RestatCommand(mc.dragons.tools.content.command.statistics.RestatCommand) CommunityObjectiveCommands(mc.dragons.tools.content.command.CommunityObjectiveCommands) SignCommand(mc.dragons.tools.content.command.builder.SignCommand) GoToFloorCommand(mc.dragons.tools.content.command.builder.GoToFloorCommand) FloorCommand(mc.dragons.tools.content.command.gameobject.FloorCommand) GoToFloorCommand(mc.dragons.tools.content.command.builder.GoToFloorCommand) CommandExecutor(org.bukkit.command.CommandExecutor) PlaceholderCommand(mc.dragons.tools.content.command.PlaceholderCommand) DeleteNPCCommand(mc.dragons.tools.content.command.internal.DeleteNPCCommand) WarpCommands(mc.dragons.tools.content.command.builder.WarpCommands) ClearInventoryCommand(mc.dragons.tools.content.command.builder.ClearInventoryCommand) UpdateStatsCommand(mc.dragons.tools.content.command.statistics.UpdateStatsCommand) SpeedCommand(mc.dragons.tools.content.command.builder.SpeedCommand) ReloreCommand(mc.dragons.tools.content.command.statistics.ReloreCommand) Dragons(mc.dragons.core.Dragons) HologramCommand(mc.dragons.tools.content.command.builder.HologramCommand) DeleteNPCCommand(mc.dragons.tools.content.command.internal.DeleteNPCCommand) NPCCommand(mc.dragons.tools.content.command.gameobject.NPCCommand) ResetProfileCommand(mc.dragons.tools.content.command.statistics.ResetProfileCommand) ContentToolsListeners(mc.dragons.tools.content.event.ContentToolsListeners) TestQuestCommand(mc.dragons.tools.content.command.testing.TestQuestCommand) NPCIdentifierAddon(mc.dragons.tools.content.addon.NPCIdentifierAddon) Addon(mc.dragons.core.addon.Addon) ItemCommand(mc.dragons.tools.content.command.gameobject.ItemCommand) NPCIdentifierAddon(mc.dragons.tools.content.addon.NPCIdentifierAddon) RegionCommand(mc.dragons.tools.content.command.gameobject.RegionCommand) ObjectMetadataCommand(mc.dragons.tools.content.command.gameobject.ObjectMetadataCommand) TestQuestCommand(mc.dragons.tools.content.command.testing.TestQuestCommand) QuestCommand(mc.dragons.tools.content.command.gameobject.QuestCommand) RenameCommand(mc.dragons.tools.content.command.statistics.RenameCommand) FixedCommand(mc.dragons.tools.content.command.builder.FixedCommand) GamemodeCommand(mc.dragons.tools.content.command.builder.GamemodeCommand)

Aggregations

Dragons (mc.dragons.core.Dragons)1 Addon (mc.dragons.core.addon.Addon)1 NPCIdentifierAddon (mc.dragons.tools.content.addon.NPCIdentifierAddon)1 CommunityObjectiveCommands (mc.dragons.tools.content.command.CommunityObjectiveCommands)1 PlaceholderCommand (mc.dragons.tools.content.command.PlaceholderCommand)1 ClearInventoryCommand (mc.dragons.tools.content.command.builder.ClearInventoryCommand)1 FixedCommand (mc.dragons.tools.content.command.builder.FixedCommand)1 GamemodeCommand (mc.dragons.tools.content.command.builder.GamemodeCommand)1 GoToFloorCommand (mc.dragons.tools.content.command.builder.GoToFloorCommand)1 HologramCommand (mc.dragons.tools.content.command.builder.HologramCommand)1 SignCommand (mc.dragons.tools.content.command.builder.SignCommand)1 SpeedCommand (mc.dragons.tools.content.command.builder.SpeedCommand)1 WarpCommands (mc.dragons.tools.content.command.builder.WarpCommands)1 FloorCommand (mc.dragons.tools.content.command.gameobject.FloorCommand)1 ItemCommand (mc.dragons.tools.content.command.gameobject.ItemCommand)1 NPCCommand (mc.dragons.tools.content.command.gameobject.NPCCommand)1 ObjectMetadataCommand (mc.dragons.tools.content.command.gameobject.ObjectMetadataCommand)1 QuestCommand (mc.dragons.tools.content.command.gameobject.QuestCommand)1 RegionCommand (mc.dragons.tools.content.command.gameobject.RegionCommand)1 DeleteNPCCommand (mc.dragons.tools.content.command.internal.DeleteNPCCommand)1