From a4bbcd4b83a0026bf275af6d78bbcfc654b8f3c8 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sat, 17 Jun 2023 15:02:42 +0700 Subject: [PATCH] display name? idk idk it looks better and worse --- .../chayapak/chomens_bot/commands/ListCommand.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ListCommand.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ListCommand.java index 8961eb6..b6632b1 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ListCommand.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ListCommand.java @@ -51,17 +51,19 @@ public class ListCommand implements Command { playersComponent.add( Component.translatable( "%s › %s", - Component - .text(entry.profile().getName()) + entry.displayName() .hoverEvent( HoverEvent.showText( - Component.text("Click here to copy the username to your clipboard").color(NamedTextColor.GREEN) + Component + .text(entry.profile().getName()) + .append(Component.newline()) + .append(Component.text("Click here to copy the username to your clipboard").color(NamedTextColor.GREEN)) ) ) .clickEvent( ClickEvent.copyToClipboard(entry.profile().getName()) ) - .color(ColorUtilities.getColorByString(bot.config().colorPalette().username())), + .color(NamedTextColor.WHITE), Component .text(entry.profile().getIdAsString()) .hoverEvent(