Commands/team

Controls teams.

Arguments

 * team
 * Specifies the name of the team.


 * displayName (optional)
 * Specifies the name to be displayed by the team.


 * members
 * Specifies the entities to join or leave the team.


 * option
 * A specific option to change.
 * Value must be one of the following:
 * : Decide what entities players 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 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.


 * value
 * Specifies the value to set option to.
 * Shown below are the values for each option.



Result
Fails if the arguments are not specified correctly.

On success:
 * — Creates a new team.
 * — Removes all members from a team.
 * — Makes a player join a team.
 * — Makes a player leave a team.
 * — Lists all teams, or lists all members of a team if team is set.
 * — Sets the option of a team to the specified value.
 * — Removes the team.