Skip to content

PlayerAreaPayload

What playerEnteredArea and playerLeftArea get: the payload a handler receives.

type PlayerAreaPayload = { player: PlayerSnapshot; area: Area };
Field Type Description
player PlayerSnapshot The player.
area Area The area, from areas.create. Its old name zone still works, with a warning.