Player
paper/event_get_player
Event Get Player
Extracts the player from a Bukkit event object.
Note: Not all events have a player. Use the found output to guard against null players.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
event |
event | The event object. |
Outputs
| Name | Type | Description |
|---|---|---|
player |
player | The player associated with the event. |
found |
boolean | True if a player was found in the event. |