forgor that i used displayname

This commit is contained in:
Chayapak 2023-04-16 16:53:05 +07:00
parent 094ca5018b
commit 52ac580aee

View file

@ -48,7 +48,7 @@ public class RandomTeleportCommand implements Command {
context.sendOutput(
Component.empty()
.append(Component.text("Teleporting "))
.append(sender.displayName().color(NamedTextColor.AQUA))
.append(Component.text(sender.profile().getName()).color(NamedTextColor.AQUA))
.append(Component.text(" to ").color(NamedTextColor.WHITE))
.append(Component.text(stringPosition).color(NamedTextColor.GREEN))
.append(Component.text("...").color(NamedTextColor.WHITE))