/say
< Commands
/say| Permission level required |
|
|---|---|
| Restrictions | None |
{
"title": "<code>/say</code>",
"rows": [
{
"field": "\n* 2 <sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Java Edition\">(link to Java Edition article, displayed as JE) only</span></i>]</sup>\n* 1 <sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Bedrock Edition\">(link to Bedrock Edition article, displayed as BE) only</span></i>]</sup>",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "None",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Broadcasts message in the chat to all players on the server.
Syntax
[edit | edit source]- Java Edition
say <message>
- Bedrock Edition
say <message: message>
Arguments
[edit | edit source]JE: <message>: message
BE: message: message: CommandMessage
- Specifies the message to say.
- It is a greedy phrase string argument (taking the rest of the command as the string argument). Can include spaces as well as target selectors. The game replaces entity selectors in the message with the list of selected entities' names, which is formatted as "name1 and name2" for two entities, or "name1, name2, ... and namen" for n entities. In Bedrock Edition,
@<player name>can be used to mention a player;@herecan be used to mention all players.
Result
[edit | edit source]
| Command | Trigger | Java Edition | Bedrock Edition |
|---|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable | Unparseable |
| Otherwise | Successful | ||
Output
[edit | edit source]
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On success | 1 | 1 | 1 |
| Bedrock Edition | On success | 1 | N/A | N/A |
History
[edit | edit source]Java Edition
[edit | edit source]| Java Edition Classic | |||||||
|---|---|---|---|---|---|---|---|
| 0.0.16a_01 | server 1.1 | Replaced /broadcast with /say. | |||||
Bedrock Edition
[edit | edit source]| Pocket Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v0.16.0 | build 1 | Added /say. | |||||
See also
[edit | edit source]/tell– Sends a message to specific players.
External links
[edit | edit source]- "
/sayCommand" – Microsoft Learn, October 11, 2023.