Team

open class Team(source)

Represents a team in the game with players management functionality. Each team has a name, maximum player capacity, and a specific color.

Constructors

Link copied to clipboard
constructor(teamName: String, maxPlayers: Int, color: ChatFormatting)
Constructs a new team with specified parameters.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun addPlayer(player: ModPlayer)
Adds a player to the team if there's available space.
Link copied to clipboard
open fun getColor(): ChatFormatting
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Converts the list of players to a list of player names.
Link copied to clipboard
Link copied to clipboard
open fun removePlayer(player: ModPlayer)
Removes a player from the team.
Link copied to clipboard
open fun toString(): String
Returns a string representation of the team.