Commands/team

Controls teams.

Arguments

 * Specifies the name of the team.


 * Specifies the team name to be displayed. Must be a valid raw JSON text.


 * Specifies the entities to join or leave the team. Must be a plain text representing a player name, or be a target selector.
 * Permits entities other than players.
 * "*" may be used to represent all entities tracked by the scoreboard.


 * A specific option to change.
 * Value must be one of the following:
 * : Decide what entities entities on this team can push.
 * : Decide the color of the team and players in chat, above their head, on the Tab menu, and on the sidebar. Also changes the color of the outline of the entities caused by the Glowing effect.
 * : Decide whose death messages can be seen in chat.
 * : Set the display name of the team.
 * : Enable/Disable players inflicting damage on each other when on the same team. (Note: players can still inflict status effects on each other.) Does not affect non-player entities on a team.
 * : Decide whose name tags above their heads can be seen.
 * : Modifies the prefix that appears before players' names in chat.
 * : Decide if players can see invisible players on their team as semi-transparent or completely invisible.
 * : Modifies the suffix that appears after players' names in chat.


 * Specifies the value to set  to.
 * Shown below are the values for each option.
 * For :
 * - (Default) Normal collision.
 * - No entities can push entities on this team.
 * - Entities on this team can be pushed only by another entity on this team.
 * - Entities on this team cannot be pushed by another entity on this team.
 * For :
 * - (Default) reset the color.
 * For :
 * - Hide deathmessage for every players.
 * - Hide deathmessage to every players who are not on the same team.
 * - Hide deathmessage to players on the same team.
 * - (Default) Make deathmessage visible to every players.
 * For :
 * - Specifies the team name to be displayed. Must be a plain text or a valid raw JSON text.
 * For
 * - (Default) Enable players inflicting damage on each other when on the same team.
 * - Disable players inflicting damage on each other when on the same team.
 * For :
 * - Name above player's head cannot be seen by any players.
 * - Name above player's head can be seen only by players on the same team.
 * - Name above player's head cannot be seen by any players on the same team.
 * - (Default) Name above player's head can be seen by any players.
 * For :
 * - Specifies the prefix. Must be a plain text or a valid raw JSON text.
 * For :
 * - (Default) Can see invisible players on the same team.
 * - Cannot see invisible players on the same team.
 * For :
 * - Specifies the suffix. Must be a plain text or a valid raw JSON text.
 * - Specifies the team name to be displayed. Must be a plain text or a valid raw JSON text.
 * For
 * - (Default) Enable players inflicting damage on each other when on the same team.
 * - Disable players inflicting damage on each other when on the same team.
 * For :
 * - Name above player's head cannot be seen by any players.
 * - Name above player's head can be seen only by players on the same team.
 * - Name above player's head cannot be seen by any players on the same team.
 * - (Default) Name above player's head can be seen by any players.
 * For :
 * - Specifies the prefix. Must be a plain text or a valid raw JSON text.
 * For :
 * - (Default) Can see invisible players on the same team.
 * - Cannot see invisible players on the same team.
 * For :
 * - Specifies the suffix. Must be a plain text or a valid raw JSON text.

Result
Fails if the arguments are not specified correctly or if  fails to resolve to one or more entities.


 * — Fails if the team already exists. On success, creates a new team.
 * — Fails if the team does not exist or is already empty. On success, removes all members from a team.
 * — Fails if the team does not exist or if  fails to resolve to one or more online players or entities. On success, makes   join a team.
 * — Fails if  fails to resolve to one or more online players or entities. On success, makes a player leave a team.
 * — Fails if the team does not exist. Lists all teams, or lists all members of a team if  is set.
 * — Fails if the team does not exist or if the specified value is the same as the current value. On success, sets the  of a team to the specified value.
 * — Fails if the team does not exist. On success, Removes the team.