Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/msg

Command

/msg

Sends a private message to one or more players; /tell and /w are the same command.

Syntax

/msg <targets> <message>
/tell ... (the same as /msg)
/w ... (the same as /msg)

Arguments

ArgumentKind of valueWhat to type
<targets>Target selectorThe player or players who receive the message: a player name or a target selector that only matches players. One or more players.
<message>MessageThe text to send. It can contain spaces and runs to the end of the line.

Details

Permission level0: every player
Works inEveryone can use it: no operator status or cheats needed. Works in singleplayer, on multiplayer servers, in command blocks and in functions.
Short forms/tell and /w
ResultEach recipient sees "<sender> whispers to you: <message>" and the sender sees "You whisper to <player>: <message>" for each recipient. The number /execute store saves is the number of players the message was sent to.
Aliases/tell and /w work exactly like /msg.
SelectorsChoosing recipients with a target selector such as @a needs permission level 2. Without it, type the player's name. Selectors inside the message text are also only replaced with names for senders with level 2.
Only playersRecipients must be players who are online. If no player matches, the command fails.
Filtered messagesIf the server's chat filter hides the whole message from a recipient, the sender is told "The server has hidden your message for some players."

Examples

/msg Steve Meet me at spawn

Whispers "Meet me at spawn" to Steve.

/tell Alex Thanks for the trade

Whispers to Alex using the /tell alias.

/w Steve I found a Stronghold

Whispers to Steve using the /w alias.

/msg @a[distance=..10] Follow me

Whispers to every player within 10 blocks (needs permission level 2 for the selector).

/msg @a The event starts in 5 minutes

Whispers the same message to every player online.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)