TeamChangedEvent
constTeamChangedEvent:EventHandle<TeamChangedRecord,Reliable,Entity>
A player’s team changed, on the player entity, at the end of the
tick’s rules, whichever plugin answers the team question: the
player’s join’s first team, the player’s 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.