From ba53a265c5b41b3bb16d7e0a52ea36c689b1edc6 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Tue, 3 Jun 2025 15:54:13 +0700 Subject: [PATCH] refactor: small change in TestCommand --- .../java/me/chayapak1/chomens_bot/commands/TestCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/chayapak1/chomens_bot/commands/TestCommand.java b/src/main/java/me/chayapak1/chomens_bot/commands/TestCommand.java index 6b687100..3270e63d 100644 --- a/src/main/java/me/chayapak1/chomens_bot/commands/TestCommand.java +++ b/src/main/java/me/chayapak1/chomens_bot/commands/TestCommand.java @@ -21,10 +21,11 @@ public class TestCommand extends Command { public Component execute (final CommandContext context) throws CommandException { return Component.translatable( "commands.test.output", + NamedTextColor.GREEN, Component.text(context.sender.profile.getName()), Component.text(context.sender.profile.getIdAsString()), Component.text(context.prefix), Component.text(context.getString(true, false)) - ).color(NamedTextColor.GREEN); + ); } }