forked from ChomeNS/chomens-bot-java
fix list for null display names
This commit is contained in:
parent
13b8831d0e
commit
6812edaa94
1 changed files with 3 additions and 1 deletions
|
@ -51,6 +51,8 @@ public class ListCommand implements Command {
|
|||
playersComponent.add(
|
||||
Component.translatable(
|
||||
"%s › %s",
|
||||
entry.displayName() == null ?
|
||||
Component.text(entry.profile().getName()).color(ColorUtilities.getColorByString(bot.config().colorPalette().username())) :
|
||||
entry.displayName()
|
||||
.hoverEvent(
|
||||
HoverEvent.showText(
|
||||
|
|
Loading…
Reference in a new issue