forked from ChomeNS/chomens-bot-java
display name?
idk idk it looks better and worse
This commit is contained in:
parent
0cf8fc86af
commit
a4bbcd4b83
1 changed files with 6 additions and 4 deletions
|
@ -51,17 +51,19 @@ public class ListCommand implements Command {
|
||||||
playersComponent.add(
|
playersComponent.add(
|
||||||
Component.translatable(
|
Component.translatable(
|
||||||
"%s › %s",
|
"%s › %s",
|
||||||
Component
|
entry.displayName()
|
||||||
.text(entry.profile().getName())
|
|
||||||
.hoverEvent(
|
.hoverEvent(
|
||||||
HoverEvent.showText(
|
HoverEvent.showText(
|
||||||
Component.text("Click here to copy the username to your clipboard").color(NamedTextColor.GREEN)
|
Component
|
||||||
|
.text(entry.profile().getName())
|
||||||
|
.append(Component.newline())
|
||||||
|
.append(Component.text("Click here to copy the username to your clipboard").color(NamedTextColor.GREEN))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.clickEvent(
|
.clickEvent(
|
||||||
ClickEvent.copyToClipboard(entry.profile().getName())
|
ClickEvent.copyToClipboard(entry.profile().getName())
|
||||||
)
|
)
|
||||||
.color(ColorUtilities.getColorByString(bot.config().colorPalette().username())),
|
.color(NamedTextColor.WHITE),
|
||||||
Component
|
Component
|
||||||
.text(entry.profile().getIdAsString())
|
.text(entry.profile().getIdAsString())
|
||||||
.hoverEvent(
|
.hoverEvent(
|
||||||
|
|
Loading…
Reference in a new issue