diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/ChatCommandHandlerPlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/ChatCommandHandlerPlugin.java index d4fb547..f7ad9b4 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/ChatCommandHandlerPlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/ChatCommandHandlerPlugin.java @@ -58,11 +58,9 @@ public class ChatCommandHandlerPlugin extends ChatPlugin.Listener { final PlayerCommandContext context = new PlayerCommandContext(bot, displayName, prefix, "@a", message.sender); - bot.executorService.submit(() -> { - final Component output = bot.commandHandler.executeCommand(commandString, context, null); + final Component output = bot.commandHandler.executeCommand(commandString, context, null); - if (output != null) context.sendOutput(output); - }); + if (output != null) context.sendOutput(output); return true; }