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

NameTypeOptionalDescription
event event The event object.

Outputs

NameTypeDescription
player player The player associated with the event.
found boolean True if a player was found in the event.