Player paper/get_player_by_name

Get Player By Name

Looks up an online player by their username.

Note: Only works for online players. Use an Is Null check on the player output before using it.

Inputs

NameTypeOptionalDescription
name string The player's name.

Outputs

NameTypeDescription
player player The found player (null if offline).
found boolean True if the player is online.

Properties

KeyTypeDefaultDescription
name string "" Player Name (fallback)