Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

TeamChangedEvent

const TeamChangedEvent: EventHandle<TeamChangedRecord, Reliable, Entity>

A player’s team changed, on her player entity, at the end of the tick’s rules, whichever plugin answers the team question: her join’s first team, her switch, a game’s setTeam or a balance. A change and its reversal within one tick are no change. Read the cause, so a player’s own switch and a game’s move are told apart.