refactor: small change in TestCommand

This commit is contained in:
ChomeNS
2025-06-03 15:54:13 +07:00
parent 3960bf1fab
commit ba53a265c5

View File

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