/teammsg

From Minecraft Wiki
Jump to navigation Jump to search
This feature is exclusive to Java Edition.
/teammsg
Aliases /tm
Permission level
required
0
Restrictions None

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

Syntax

[edit | edit source]
teammsg <message>

Arguments

[edit | edit source]

<message>: message

Specifies the message to send to team.
It is a greedy phrase string argument (taking the rest of the command as the string argument). 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.

Result

[edit | edit source]

CommandTriggerJava Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable
The executor is not an entity. Failed
The executor is not in any team.
OtherwiseSuccessful

Output

[edit | edit source]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
AnyJava EditionOn fail000
On success11the number of players in this team

History

[edit | edit source]
Java Edition
1.1419w02a Added /teammsg and /tm.
[edit | edit source]