getPlayer

abstract fun getPlayer(uuid: UUID): Player?

Gets the online player with the given uuid, or returns null if there is no player online with the given uuid.

Return

the player, or null if not present

Parameters

uuid

the UUID


abstract fun getPlayer(name: String): Player?

Gets the online player with the given name, or returns null if there is no player online with the given name.

Warning: Usernames are not unique past a single session. Do not use usernames to uniquely identify users!

Return

the player, or null if not present

Parameters

name

the player's name