From 1d6a21996b03560684e4f210546c05aee312f2e4 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Wed, 30 Aug 2023 16:15:12 +0700 Subject: [PATCH] fix output --- .../chipmunk/chayapak/chomens_bot/commands/ConsoleCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ConsoleCommand.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ConsoleCommand.java index f3b8d0c..b6a4d2f 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ConsoleCommand.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ConsoleCommand.java @@ -60,7 +60,7 @@ public class ConsoleCommand extends Command { context.sendOutput(Component.text("Set the console server to " + bot.console.consoleServer).color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor))); } catch (ArrayIndexOutOfBoundsException e) { - return Component.text("Invalid server: " + String.join(" ", args)).color(NamedTextColor.RED); + return Component.text("Invalid server: " + server).color(NamedTextColor.RED); } } }