fix: AAAA I COMMIT THE TEST CODE
This commit is contained in:
parent
b8ea989026
commit
f1d24b8a59
1 changed files with 9 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue