Search in sources :

Example 1 with PartyCommand

use of mc.dragons.social.party.PartyCommand in project DragonsOnline by UniverseCraft.

the class DragonsSocial method onEnable.

public void onEnable() {
    enableDebugLogging();
    Dragons dragons = getDragonsInstance();
    PartyLoader partyLoader = new PartyLoader(dragons);
    dragons.getLightweightLoaderRegistry().register(partyLoader);
    partyLoader.loadMessenger();
    dragons.getLightweightLoaderRegistry().register(new GuildLoader(dragons.getMongoConfig()));
    socialHook = new SocialUserHook();
    dragons.getUserHookRegistry().registerHook(socialHook);
    ChatChannel.GUILD.setHandler(new GuildChannelHandler(dragons));
    ChatChannel.PARTY.setHandler(new PartyChannelHandler(dragons));
    getCommand("guild").setExecutor(new GuildCommand());
    getCommand("guildadmin").setExecutor(new GuildAdminCommand());
    DuelCommands duelCommands = new DuelCommands();
    getCommand("duel").setExecutor(duelCommands);
    getCommand("listallduelstatus").setExecutor(duelCommands);
    getCommand("testduelwin").setExecutor(duelCommands);
    PrivateMessageCommands privateMessageCommands = new PrivateMessageCommands(this);
    getCommand("msg").setExecutor(privateMessageCommands);
    getCommand("reply").setExecutor(privateMessageCommands);
    getCommand("chatspy").setExecutor(privateMessageCommands);
    getCommand("toggleselfmessage").setExecutor(privateMessageCommands);
    getCommand("togglemsg").setExecutor(privateMessageCommands);
    BlockCommands blockCommands = new BlockCommands();
    getCommand("block").setExecutor(blockCommands);
    getCommand("unblock").setExecutor(blockCommands);
    getCommand("toggleselfblock").setExecutor(blockCommands);
    FriendCommand friendCommand = new FriendCommand(this);
    getCommand("friend").setExecutor(friendCommand);
    getCommand("toggleselffriend").setExecutor(friendCommand);
    getCommand("dumpFriends").setExecutor(friendCommand);
    PartyCommand partyCommand = new PartyCommand(dragons);
    getCommand("party").setExecutor(partyCommand);
    getCommand("toggleselfparty").setExecutor(partyCommand);
    getCommand("dumpParties").setExecutor(partyCommand);
    getCommand("shout").setExecutor(new ShoutCommand());
    getCommand("channel").setExecutor(new ChannelCommand());
}
Also used : PartyLoader(mc.dragons.social.party.PartyLoader) GuildAdminCommand(mc.dragons.social.guild.GuildAdminCommand) GuildCommand(mc.dragons.social.guild.GuildCommand) PrivateMessageCommands(mc.dragons.social.messaging.PrivateMessageCommands) PartyCommand(mc.dragons.social.party.PartyCommand) PartyChannelHandler(mc.dragons.social.party.PartyChannelHandler) GuildLoader(mc.dragons.social.guild.GuildLoader) ShoutCommand(mc.dragons.social.shout.ShoutCommand) Dragons(mc.dragons.core.Dragons) GuildChannelHandler(mc.dragons.social.guild.GuildChannelHandler) DuelCommands(mc.dragons.social.duel.DuelCommands) FriendCommand(mc.dragons.social.friend.FriendCommand)

Aggregations

Dragons (mc.dragons.core.Dragons)1 DuelCommands (mc.dragons.social.duel.DuelCommands)1 FriendCommand (mc.dragons.social.friend.FriendCommand)1 GuildAdminCommand (mc.dragons.social.guild.GuildAdminCommand)1 GuildChannelHandler (mc.dragons.social.guild.GuildChannelHandler)1 GuildCommand (mc.dragons.social.guild.GuildCommand)1 GuildLoader (mc.dragons.social.guild.GuildLoader)1 PrivateMessageCommands (mc.dragons.social.messaging.PrivateMessageCommands)1 PartyChannelHandler (mc.dragons.social.party.PartyChannelHandler)1 PartyCommand (mc.dragons.social.party.PartyCommand)1 PartyLoader (mc.dragons.social.party.PartyLoader)1 ShoutCommand (mc.dragons.social.shout.ShoutCommand)1