refactor: FINALLY improve the color palette, no more ColorUtilities.getColorByString(bot.config.colorPalette.something) every time i want use a color palette
This commit is contained in:
@@ -133,7 +133,8 @@ public class CommandHandlerPlugin implements TickPlugin.Listener {
|
||||
// I think this is kinda annoying when you correct spelling mistakes or something,
|
||||
// so I made it return nothing if we're in game
|
||||
if (command == null) {
|
||||
if (!inGame) context.sendOutput(Component.text("Unknown command: " + commandName).color(NamedTextColor.RED));
|
||||
if (!inGame)
|
||||
context.sendOutput(Component.text("Unknown command: " + commandName).color(NamedTextColor.RED));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user