getOrAddTeam

abstract fun getOrAddTeam(name: String): Team

Gets the existing team with the given name, or creates a new team with the given name and adds it to the list of registered teams for this scoreboard.

Return

the existing team, or the new team if there was no existing one

Parameters

name

the name of the team