diff --git a/Plugins/Mineplex.Core/src/mineplex/core/message/MessageManager.java b/Plugins/Mineplex.Core/src/mineplex/core/message/MessageManager.java index 0f40ef5d7..ae30a06f1 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/message/MessageManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/message/MessageManager.java @@ -60,10 +60,13 @@ public class MessageManager extends MiniClientPlugin _punish = punish; _friendsManager = friendManager; _serverName = GetPlugin().getConfig().getString("serverstatus.name"); + + MessageHandler messageHandler = new MessageHandler(this); ServerCommandManager.getInstance().registerCommandType("AnnouncementCommand", AnnouncementCommand.class, new AnnouncementHandler()); - ServerCommandManager.getInstance().registerCommandType("RedisMessage", RedisMessage.class, new MessageHandler(this)); + ServerCommandManager.getInstance().registerCommandType("RedisMessage", RedisMessage.class, messageHandler); + ServerCommandManager.getInstance().registerCommandType("RedisMessageCallback", RedisMessageCallback.class, messageHandler); } public void AddCommands()