Commands/teammsg

From Minecraft Wiki
Jump to: navigation, search
Information icon.svg
This feature is exclusive to Java Edition.
teammsg
Aliases
Restrictions

None

First introduced

Java Edition 1.14 (19w02a)

Sends message to all players on the team of the entity who runs the command.

Syntax[edit]

teammsg <message>
tm <message>

Arguments[edit]

<message>: message

Must be a plain text. Can include spaces as well as target selectors. The game replaces entity selectors in the message with the list of selected entities' names, which is formatted as "name1 and name2" for two entities, or "name1, name2, ... and namen" for n entities.
Specifies the message to send to team.

Result[edit]

CommandTriggerJava Edition
anythe arguments are not specified correctly Unparseable
if <target> fails to resolve to an entity (named player must be online) Failed
if executor is not an entity
if executor is not on any team
On successSend message to only player(s) on the same team.

Output[edit]

CommandEditionSituationSuccess Count/execute store succeess .../execute store result ...
anyJava EditionOn fail000
On success11the number of players on the same team

History[edit]

Java Edition
1.1419w02aAdded /teammsg and /tm.