Commands/teammsg
Minecraft Wiki article. Categories: Java_Edition, Commands
📌 Mirrored from Minecraft Wiki
This article is reproduced from Commands/teammsg on the Minecraft Wiki. Mirrored from revision 3593323. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
This feature is exclusive to Java Edition.
/teammsg{
"title": "<code>/teammsg</code>",
"rows": [
{
"field": "<!-- Command --><code ><span>/tm</span></code><!-- /Command -->",
"label": "Aliases"
},
{
"field": "0",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "None",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Sends a message to all players in the team of the entity who runs the command.
Syntax
teammsg <message>
Arguments
<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
| Command | Trigger | Java Edition |
|---|---|---|
| Any | The 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. | ||
| Otherwise | Successful |
Output
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On fail | 0 | 0 | 0 |
| On success | 1 | 1 | the number of players in this team |
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.14 | 19w02a | Added /teammsg and /tm. | |||||
Navigation
Sources
- Commands/teammsg — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3593323.