PrivateconstructorThis function can't be called in restricted-execution mode.
early-execution-allowed - This function can be called in early-execution mode.
This function can't be called in restricted-execution mode.
early-execution-allowed - This function can be called in early-execution mode.
Registers an event when a player is spawned (or re-spawned after death) and fully ready within the world.
Example: initialSpawnEvent.js
Source