fix: AAAA I COMMIT THE TEST CODE

This commit is contained in:
Chayapak 2025-04-21 20:23:43 +07:00
parent b8ea989026
commit f1d24b8a59
Signed by: ChomeNS
SSH key fingerprint: SHA256:0YoxhdyXsgbc0nfeB2N6FYE60mxMU7DS4uCUMaw2mvA

View file

@ -5,6 +5,7 @@ import me.chayapak1.chomens_bot.command.CommandContext;
import me.chayapak1.chomens_bot.command.CommandException;
import me.chayapak1.chomens_bot.command.TrustLevel;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
public class TestCommand extends Command {
public TestCommand () {
@ -19,17 +20,13 @@ public class TestCommand extends Command {
@Override
public Component execute (final CommandContext context) throws CommandException {
for (final Thread thread : Thread.getAllStackTraces().keySet()) {
System.out.println(thread);
}
return null;
// return Component.translatable(
// "Hello, World! Username: %s, Sender UUID: %s, Prefix: %s, Flags: %s, Args: %s",
// Component.text(context.sender.profile.getName()),
// Component.text(context.sender.profile.getIdAsString()),
// Component.text(context.prefix),
// Component.text(String.join(" ", context.getFlags())),
// Component.text(context.getString(true, false))
// ).color(NamedTextColor.GREEN);
return Component.translatable(
"Hello, World! Username: %s, Sender UUID: %s, Prefix: %s, Flags: %s, Args: %s",
Component.text(context.sender.profile.getName()),
Component.text(context.sender.profile.getIdAsString()),
Component.text(context.prefix),
Component.text(String.join(" ", context.getFlags())),
Component.text(context.getString(true, false))
).color(NamedTextColor.GREEN);
}
}