addPlayerToTeam

open fun addPlayerToTeam(player: ModPlayer, newTeam: Team)(source)

Adds a player to a specified team, handling their removal from any previous team.

Parameters

player

The player to add

newTeam

The team to add the player to