From e7cb46c07c9dfb39a9e966c3b4ce3634aaa70645 Mon Sep 17 00:00:00 2001 From: Chipmunk <65827213+ChipmunkMC@users.noreply.github.com> Date: Tue, 11 Apr 2023 23:19:22 -0400 Subject: [PATCH] improve display names --- .../chipmunk/chipmunkbot/command/PlayerCommandSource.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/land/chipmunk/chipmunkbot/command/PlayerCommandSource.java b/src/main/java/land/chipmunk/chipmunkbot/command/PlayerCommandSource.java index 973aa59..d13b5f4 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/command/PlayerCommandSource.java +++ b/src/main/java/land/chipmunk/chipmunkbot/command/PlayerCommandSource.java @@ -26,10 +26,7 @@ public class PlayerCommandSource extends CommandSource { @Override public Component displayName () { - final Component explicitDisplayName = player.displayName(); - final Component displayName = explicitDisplayName != null ? explicitDisplayName : Component.text(player.profile().getName()); - - return displayName; + return Component.selector(player.profile().getId().toString()); } @Override public MutablePlayerListEntry player () { return this.player; }