PlayerSpawnedPayload
What playerSpawned gets: the payload a handler receives.
Definition
Section titled “Definition”type PlayerSpawnedPayload = { player: PlayerSnapshot; spawnKind: "initial" | "respawn"; };Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player. |
spawnKind |
"initial" | "respawn" |
Their first spawn on this server, or a spawn after dying or being busted. |
Related
Section titled “Related”playerSpawned: the event