🟢Teams

The game has multiple teams in the game.

It is recommended that the name of the team should be unique.

How to create a new team?

Team team = game.createTeam("name", "displayName", ChatColor.RED);

Team methods:

String getName(); //Gets team's name
String getDisplayName(); //Gets team's display name
ChatColor getColor(); //Gets team's color
void setColor(ChatColor color); //Sets team's color
void setDisplayName(String displayName); //Sets team's display name
List<UserGame> getUsers(); //Gets user's list
void addUser(UserGame userGame); //Adds user to team
void removeUser(UserGame userGame); //Removes user from team

Last updated