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
| Name | Type | Optional | Description |
|---|---|---|---|
name |
string | ✓ | The player's name. |
Outputs
| Name | Type | Description |
|---|---|---|
player |
player | The found player (null if offline). |
found |
boolean | True if the player is online. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
name |
string | "" |
Player Name (fallback) |