Minecraft:Commands/msg: Difference between revisions
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| Line 1: | Line 1: | ||
{{ | {{MC/Distinguish|Commands/tellraw|Commands/say}} | ||
{{update|{{bug|MCPE-230568}}}} | {{update|{{bug|MCPE-230568}}}} | ||
{{Infobox command | {{Infobox command | ||
| name = msg | | name = msg | ||
| alias = | | alias = | ||
* {{ | * {{MC/Cmd|tell|link=none}} | ||
* {{ | * {{MC/Cmd|w|link=none}} | ||
| oplevel = 0 | | oplevel = 0 | ||
}} | }} | ||
| Line 13: | Line 13: | ||
*'''Java Edition''' | *'''Java Edition''' | ||
: {{ | : {{MC/Cmd|link=none|msg <targets> <message>}} | ||
*'''Bedrock Edition''' | *'''Bedrock Edition''' | ||
: {{ | : {{MC/Cmd|link=none|msg <target: target> <message: message>}} | ||
==Arguments== | ==Arguments== | ||
{{ | {{MC/Argument|targets|entity|target: target|CommandSelector<Player>}} | ||
: Specifies the player(s) to send the message to. | : Specifies the player(s) to send the message to. | ||
: {{ | : {{MC/Arg desc|je=entity|amount=multiple|type=players|be=player}} | ||
{{ | {{MC/Argument|message|message|message: message|CommandMessage}} | ||
: Specifies the message to tell. | : Specifies the message to tell. | ||
: {{ | : {{MC/Arg desc|je=message|be=CommandMessage}} | ||
==Result== | ==Result== | ||
| Line 39: | Line 39: | ||
== Output == | == Output == | ||
{{Output table}} | {{MC/Output table}} | ||
{{Output table|edition=je|On fail|0|0|0}} | {{MC/Output table|edition=je|On fail|0|0|0}} | ||
{{Output table|On success|1|1|the number of targeted players}} | {{MC/Output table|On success|1|1|the number of targeted players}} | ||
{{Output table|edition=be|On fail|0}} | {{MC/Output table|edition=be|On fail|0}} | ||
{{Output table|On success|the number of targeted players}} | {{MC/Output table|On success|the number of targeted players}} | ||
{{Output table}} | {{MC/Output table}} | ||
==Examples== | ==Examples== | ||
* To privately tell Steve to start the game: {{ | * To privately tell Steve to start the game: {{MC/Cmd|link=none|tell Steve Start the game!}} | ||
* To say "Hi" to all online players: {{ | * To say "Hi" to all online players: {{MC/Cmd|link=none|msg @a Hi}} | ||
* To whisper to Makena instructions to trap Zuri: {{ | * To whisper to Makena instructions to trap Zuri: {{MC/Cmd|link=none|w Makena Trap Zuri now!}} | ||
== History == | == History == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java alpha}} | |{{MC/HistoryLine|java alpha}} | ||
|{{HistoryLine||v1.0.16_02|Added {{ | |{{HistoryLine||v1.0.16_02|Added {{MC/Cmd|msg|link=none}}, {{MC/Cmd|tell|link=none}}, and {{MC/Cmd|w|link=none}}.}} | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.16.2|dev=Pre-release 2|This command now displays the message to the sender even if {{ | |{{HistoryLine||1.16.2|dev=Pre-release 2|This command now displays the message to the sender even if {{MC/Cmd|gamerule sendCommandFeedback}} is disabled.<ref>{{bug|MC-134084|resolution=Fixed}}</ref>}} | ||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|pocket alpha}} | |{{MC/HistoryLine|pocket alpha}} | ||
|{{HistoryLine||v0.16.0|dev=build 1|Added {{ | |{{HistoryLine||v0.16.0|dev=build 1|Added {{MC/Cmd|msg|link=none}}, {{MC/Cmd|tell|link=none}}, and {{MC/Cmd|w|link=none}}.}} | ||
}} | }} | ||
| Line 78: | Line 78: | ||
<references/> | <references/> | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/msg | de:Befehl/msg | ||
Revision as of 20:12, 9 April 2026
Template:Hatnote Template:Update Template:Infobox command Sends a private message to one or more players.
Syntax
- Java Edition
- REDIRECT Template:Command
- Bedrock Edition
- REDIRECT Template:Command
Arguments
Template:El: <targets>: entity
Template:El: target: target: CommandSelector<Player>
- Specifies the player(s) to send the message to.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|entity}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Template:El: <message>: message
Template:El: message: message: CommandMessage
- Specifies the message to tell.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|message}}{{#vardefine:be-arg|message}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|0}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|the number of targeted players}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|be}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|the number of targeted players}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}
Examples
- To privately tell Steve to start the game:
- REDIRECT Template:Command
- To say "Hi" to all online players:
- REDIRECT Template:Command
- To whisper to Makena instructions to trap Zuri:
- REDIRECT Template:Command
History
Java Edition
Bedrock Edition
See also
/tellraw— send a JSON message to players.
External links
References
<references/>
de:Befehl/msg es:Comandos/msg ja:コマンド/msg nl:Opdrachten/msg pt:Comandos/msg ru:Команды консоли/msg zh:命令/msg