Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki's logo. Please read this announcement for more information.

READ MORE

Minecraft Wiki
Advertisement
Information icon.svg
This feature is exclusive to Java Edition. 
teammsg
Aliases
Permission level
required

0

Restrictions

None

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

Syntax[]

teammsg <message>
tm <message>

Arguments[]

<message>: message

Specifies the message to send to team.
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.

Result[]

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

Output[]

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

History[]

Java Edition
1.1419w02aAdded /teammsg and /tm.
Advertisement