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:
ChomeNS
2025-04-06 14:32:11 +07:00
parent 59749d85df
commit af67c228ce
44 changed files with 229 additions and 234 deletions

View File

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