From da793d178cf8c92f767690e678e9f438da169dab Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Thu, 4 May 2023 15:30:25 +0700 Subject: [PATCH] fix clearchatqueue? --- .../chayapak/chomens_bot/commands/ClearChatQueueCommand.java | 1 + .../land/chipmunk/chayapak/chomens_bot/plugins/ChatPlugin.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ClearChatQueueCommand.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ClearChatQueueCommand.java index b7a7d16..d9b76d6 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ClearChatQueueCommand.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ClearChatQueueCommand.java @@ -36,6 +36,7 @@ public class ClearChatQueueCommand implements Command { public Component execute(CommandContext context, String[] args, String[] fullArgs) { final Bot bot = context.bot(); + bot.chat()._queue().clear(); bot.chat().queue().clear(); return null; diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ChatPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ChatPlugin.java index 271ecc8..f1a6968 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ChatPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ChatPlugin.java @@ -35,7 +35,7 @@ public class ChatPlugin extends Bot.Listener { private final CommandSpyParser commandSpyParser; @Getter private final List queue = new ArrayList<>(); - private final List _queue = new ArrayList<>(); + @Getter private final List _queue = new ArrayList<>(); private final List listeners = new ArrayList<>();