Not to be confused with Commands/tellraw or Commands/say.
Sends a private message to one or more players.
Syntax[]
- Java Edition
msg <targets> <message>
- Bedrock Edition
msg <target: target> <message: message>
Arguments[]
JE: <targets>
: entity
BE: target: target
: CommandSelector<Player>
- Specifies the player(s) to send the message to.
- Must be a player name, a target selector or a UUID[Java Edition only]. And the target selector must[JE only]/should[BE only] be of player type.
JE: <message>
: message
BE: message: message
: CommandMessage
- Specifies the message to tell.
- 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. In Bedrock Edition,
@here
can be used to mention all players.
Result[]
Command | Trigger | Java Edition | Bedrock Edition |
---|---|---|---|
any | the arguments are not specified correctly | Unparseable | Unparseable |
player: target is not of player type | N/A | Failed | |
<targets> or player: target fails to resolve to one or more online players | Failed | ||
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 targeted players | ||
Bedrock Edition | On fail | 0 | N/A | N/A | |
On success | the number of targeted players | N/A | N/A |
Examples[]
- To privately tell Steve to start the game:
tell Steve Start the game!
- To say "Hi" to all online players:
msg @a Hi
- To whisper to kevinhuangers instructions to trap Ralixto:
w kevinhuangers Trap Ralixto now!
History[]
Java Edition Alpha | |||||
---|---|---|---|---|---|
v1.0.16_02 | Added /msg , /tell , and /w . | ||||
Java Edition | |||||
1.16.2 | Pre-release 2 | Now this commmand display the message to the sender even if gamerule sendCommandFeedback is disabled.[1] | |||
Pocket Edition Alpha | |||||
v0.16.0 | build 1 | Added /msg , /tell , and /w . |
See also[]
/tellraw
— send a JSON message to players.