/msg Command in Minecraft Java Edition

Send Direct Messages to Players in Java Edition

Java EditionChat & Text

The /msg command lets you send a text message directly to specific players in Minecraft Java Edition. Instead of typing to everyone in the main chat, you can pick exactly who sees your words.

Players use this command to talk to friends on multiplayer servers without bothering others, or to send alerts to specific people using target selectors.

Syntax (Java 26.3, 1 form)

  1. /msg <targets> <message>

The forms you will use most

/msg <targets> <message>
Sends the specified text message to the chosen player or players.

Arguments

ArgumentTypeWhat it means
<targets>target selector
players only
Chooses which players receive the message using a player name, a UUID, or a target selector designed for players.
<message>messageContains the free text you want to send, which can also include target selectors that get replaced by actual names in the chat.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

This command is only available in Minecraft Java Edition. Bedrock Edition does not have a command named /msg.

FAQ

Can I send a message to a mob using /msg?

No, the <targets> argument only works for players, so you cannot send messages to animals, monsters, or other entities.

What happens if I put a target selector inside my message text?

If you put a selector like @p or @a inside the <message> part, the game replaces that selector with the matching names before delivering the text.

When was the /msg command added to Java Edition?

The /msg command has been in the game for a long time and was already available in version 1.13 through to the current 26.3 release.

Related commands

/dialog/me/say/teammsg/tell/tellraw/title/tm/w