Commands/msg

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


 * Syntax


 * Java Edition


 * Bedrock Edition


 * Arguments


 * player (BE: target: target)
 * 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).


 * message(BE: message: message)
 * Specifies the message to send. May include spaces as well as target selectors if run from the server console. Target selectors may also be used by running the command via.


 * 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., @a) 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. Target selectors in the message are not recognized in Pocket Edition.


 * Examples


 * To privately tell Alice to start the mission: