use of mc.dragons.social.messaging.PrivateMessageCommands 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());
}
Aggregations