getName

abstract fun getName(uuid: UUID): Component

Get a players name from their uuid - Sample shows a join listener that uses the getName method.

Return

the name of the player. Will use the players nickname if it is available as well as color codes if the player is online and has permission. If the player is offline, simply the raw name data will be returned

Parameters

uuid

the UUID of the Player whose name you want to get.