forked from chipmunkmc/chipmunkbot
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
|
@Override
|
||||||
public Component displayName () {
|
public Component displayName () {
|
||||||
final Component explicitDisplayName = player.displayName();
|
return Component.selector(player.profile().getId().toString());
|
||||||
final Component displayName = explicitDisplayName != null ? explicitDisplayName : Component.text(player.profile().getName());
|
|
||||||
|
|
||||||
return displayName;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public MutablePlayerListEntry player () { return this.player; }
|
@Override public MutablePlayerListEntry player () { return this.player; }
|
||||||
|
|
Loading…
Reference in a new issue