getDisplayName

fun getDisplayName(): TextComponent

Gets the display name for the player, i.e. the name shown in tab list and in the player's nametag.

Return

the display name

Sources

Link copied to clipboard