improve display names
This commit is contained in:
parent
4fb880e092
commit
e7cb46c07c
1 changed files with 1 additions and 4 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue