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

Switch game

23 Wikis · pick your game
/say

Command

/say

Sends a chat message to every player, shown with the sender's name in square brackets.

Syntax

/say <message>

Arguments

ArgumentKind of valueWhat to type
<message>MessageThe text to send. It runs to the end of the command and may contain target selectors, which are replaced with names.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inSingleplayer with cheats enabled, multiplayer servers, command blocks and functions. Needs permission level 2 (gamemasters): operators, players in a world with cheats enabled, command blocks and functions.
ResultThe message appears in chat for all players as "[Sender] message". The number /execute store saves is 1.
Sender nameThe name in the brackets is the name of whoever runs the command, for example the player or the entity chosen with /execute as.
Target selectorsSelectors such as @a or @p inside the message are replaced with the names of the matching entities.
Message lengthThe message is everything after /say up to the end of the line, spaces included. No quotes are needed.

Examples

/say Hello everyone!

Shows "[YourName] Hello everyone!" to all players.

/say The game starts in 10 seconds

Announces a countdown to all players.

/say @a get ready

Sends a message in which @a is replaced with the names of all online players.

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)