Commands/team

Controls teams.

Arguments

 * Specifies the name of the team.


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


 * Specifies the entities to join or leave the team. Must be a player name, a target selector, or a UUID.
 * Permits entities other than players.


 * 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.
 * : 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.)
 * : 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.


 * — 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.
 * — Always succeeds. Lists all teams, or lists all members of a team if team 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.