fix: command suggestions and chomens mod messages leaking & fix command suggestions

yes you can probably guess i rewrote the string "_request_command_suggestion" by hand instead of copying and pasting
This commit is contained in:
ChomeNS
2025-04-16 17:02:52 +07:00
parent a3b6f7fecf
commit d746140005
3 changed files with 4 additions and 4 deletions

View File

@@ -134,6 +134,8 @@ public class Bot extends SessionAdapter {
this.chat = new ChatPlugin(this);
this.commandSpy = new CommandSpyPlugin(this);
this.query = new QueryPlugin(this);
this.chomeNSMod = new ChomeNSModIntegrationPlugin(this);
this.commandSuggestion = new CommandSuggestionPlugin(this);
this.logger = new LoggerPlugin(this);
this.position = new PositionPlugin(this);
this.serverFeatures = new ServerFeaturesPlugin(this);
@@ -158,12 +160,10 @@ public class Bot extends SessionAdapter {
this.exploits = new ExploitsPlugin(this);
this.filterManager = new FilterManagerPlugin(this);
this.playerFilter = new PlayerFilterPlugin(this);
this.commandSuggestion = new CommandSuggestionPlugin(this);
this.mail = new MailPlugin(this);
this.packetSniffer = new PacketSnifferPlugin(this);
this.voiceChat = new VoiceChatPlugin(this);
this.selectorBroadcaster = new BotSelectorBroadcasterPlugin(this);
this.chomeNSMod = new ChomeNSModIntegrationPlugin(this);
this.auth = new AuthPlugin(this);
// this.screenshare = new ScreensharePlugin(this);
this.clearChatNameAnnouncer = new ClearChatNameAnnouncerPlugin(this);

View File

@@ -17,7 +17,7 @@ public class CommandSuggestionPlugin implements Listener {
public CommandSuggestionPlugin (final Bot bot) {
this.bot = bot;
this.id = bot.config.namespace + "_request_command_suggestions"; // chomens_bot_request_command_suggestion
this.id = bot.config.namespace + "_request_command_suggestion"; // chomens_bot_request_command_suggestion
bot.listener.addListener(this);
}