asPlayer

val asPlayer: Player?(source)

Gets the member's Bukkit Player object if they are currently online, otherwise returns null.

Return

A Player object representing the member if they are online, otherwise null.