asPlayer

abstract fun asPlayer(): Player?

Gets the player associated with this user, or null if they are not currently available, usually meaning they are offline.

Return

the associated player