From d746140005a39e50096ffc1e53b8f6fa9c96d5e5 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Wed, 16 Apr 2025 17:02:52 +0700 Subject: [PATCH] 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 --- build-number.txt | 2 +- src/main/java/me/chayapak1/chomens_bot/Bot.java | 4 ++-- .../chomens_bot/plugins/CommandSuggestionPlugin.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build-number.txt b/build-number.txt index f538595c..c0de1c53 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -2758 \ No newline at end of file +2760 \ No newline at end of file diff --git a/src/main/java/me/chayapak1/chomens_bot/Bot.java b/src/main/java/me/chayapak1/chomens_bot/Bot.java index cae1727a..fb151ec2 100644 --- a/src/main/java/me/chayapak1/chomens_bot/Bot.java +++ b/src/main/java/me/chayapak1/chomens_bot/Bot.java @@ -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); diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/CommandSuggestionPlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/CommandSuggestionPlugin.java index d0f54fee..cb8dfec8 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/CommandSuggestionPlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/CommandSuggestionPlugin.java @@ -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); }