fix output

This commit is contained in:
Chayapak 2023-08-30 16:15:12 +07:00
parent a7d993acc1
commit 1d6a21996b

View file

@ -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);
}
}
}