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,7 +51,9 @@ public class ListCommand implements Command {
|
||||||
playersComponent.add(
|
playersComponent.add(
|
||||||
Component.translatable(
|
Component.translatable(
|
||||||
"%s › %s",
|
"%s › %s",
|
||||||
entry.displayName()
|
entry.displayName() == null ?
|
||||||
|
Component.text(entry.profile().getName()).color(ColorUtilities.getColorByString(bot.config().colorPalette().username())) :
|
||||||
|
entry.displayName()
|
||||||
.hoverEvent(
|
.hoverEvent(
|
||||||
HoverEvent.showText(
|
HoverEvent.showText(
|
||||||
Component
|
Component
|
||||||
|
|
Loading…
Reference in a new issue