improve display names

This commit is contained in:
Chipmunk 2023-04-11 23:19:22 -04:00
parent 4fb880e092
commit e7cb46c07c

View file

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