addTeam

abstract fun addTeam(name: String): Team

Creates a new team with the given name and adds it to the list of registered teams for this scoreboard.

Parameters

name

the name of the team

Throws

if there is a registered team with the same name as the given name