diff --git a/Plugins/Mineplex.Core/src/mineplex/core/message/MessageManager.java b/Plugins/Mineplex.Core/src/mineplex/core/message/MessageManager.java index a84ed8cdf..33e1b397a 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/message/MessageManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/message/MessageManager.java @@ -94,7 +94,7 @@ public class MessageManager extends MiniClientPlugin addCommand(new AnnounceCommand(this)); //addCommand(new GlobalCommand(this)); - addCommand(new AdminCommand(this, _incognitoManager)); + addCommand(new AdminCommand(this)); } @Override @@ -616,4 +616,9 @@ public class MessageManager extends MiniClientPlugin } } } + + public IncognitoManager getIncognitoManager() + { + return _incognitoManager; + } } diff --git a/Plugins/Mineplex.Core/src/mineplex/core/message/commands/AdminCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/message/commands/AdminCommand.java index be869c072..d12470834 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/message/commands/AdminCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/message/commands/AdminCommand.java @@ -14,13 +14,9 @@ import mineplex.core.message.MessageManager; public class AdminCommand extends CommandBase { - private IncognitoManager _incognitoManager; - - public AdminCommand(MessageManager plugin, IncognitoManager incognitoManager) + public AdminCommand(MessageManager plugin) { super(plugin, Rank.ALL, "a","admin"); - - _incognitoManager = incognitoManager; } @Override @@ -55,7 +51,7 @@ public class AdminCommand extends CommandBase { if (Plugin.GetClientManager().Get(to).GetRank().has(Rank.HELPER)) { - if (_incognitoManager.Get(to).Status) + if (Plugin.getIncognitoManager().Get(to).Status) { continue; }