Commands/msg

Sends a private message to one or more players. or can also be used.

Syntax

 * Java Edition


 * Bedrock Edition

Arguments
(BE: )
 * Specifies the targeted player(s) to send the private message to. Must be a player name (or a target selector, but only if the user is an operator $$).
 * Entities other than players are not allowed.

(BE: )
 * Specifies the message to send. May include spaces as well as target selectors.

Result
Fails if the arguments are not specified correctly, if any target selectors in either argument fail to resolve to at least one online player, or if a named player is not online.

On success, only the targeted player(s) see the private message in their chat. If a multi-person target selector (e.g., ) is used in message, the list of names is formatted as "name1 and name2" for two players, or "name1, name2, ... and namen" for n players.

Examples

 * To privately tell Steve to start the game:
 * To say "Hi" to all online players:

History
Befehl/msg 命令/tell