Minecraft:Commands/msg: Difference between revisions
From SAS Gaming Wiki
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft |
||
| Line 1: | Line 1: | ||
{{ | {{distinguish|Commands/tellraw|Commands/say}} | ||
{{update|{{bug|MCPE-230568}}}} | {{update|{{bug|MCPE-230568}}}} | ||
{{Infobox command | {{Infobox command | ||
| name = msg | | name = msg | ||
| alias = | | alias = | ||
* {{ | * {{cmd|tell|link=none}} | ||
* {{ | * {{cmd|w|link=none}} | ||
| oplevel = 0 | | oplevel = 0 | ||
}} | }} | ||
| Line 13: | Line 13: | ||
*'''Java Edition''' | *'''Java Edition''' | ||
: {{ | : {{cmd|link=none|msg <targets> <message>}} | ||
*'''Bedrock Edition''' | *'''Bedrock Edition''' | ||
: {{ | : {{cmd|link=none|msg <target: target> <message: message>}} | ||
==Arguments== | ==Arguments== | ||
{{ | {{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. | ||
: {{ | : {{arg desc|je=entity|amount=multiple|type=players|be=player}} | ||
{{ | {{argument|message|message|message: message|CommandMessage}} | ||
: Specifies the message to tell. | : Specifies the message to tell. | ||
: {{ | : {{arg desc|je=message|be=CommandMessage}} | ||
==Result== | ==Result== | ||
| Line 32: | Line 32: | ||
{{Result table}} | {{Result table}} | ||
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable|unparseable}} | {{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable|unparseable}} | ||
{{Result table|<code>player: target</code> is a target selector that is not of player type.|N/A|fail}} | {{Result table|<code>player: target</code> is a target selector that is not of [[Minecraft:Target_selectors#Player_type_and_single_type|player type]].|N/A|fail}} | ||
{{Result table|<code><targets></code> or <code>player: target</code> fails to resolve to one or more online players.|fail}} | {{Result table|<code><targets></code> or <code>player: target</code> fails to resolve to one or more online players.|fail}} | ||
{{Result table|succeed}} | {{Result table|succeed}} | ||
| Line 39: | Line 39: | ||
== Output == | == Output == | ||
{{ | {{Output table}} | ||
{{ | {{Output table|edition=je|On fail|0|0|0}} | ||
{{ | {{Output table|On success|1|1|the number of targeted players}} | ||
{{ | {{Output table|edition=be|On fail|0}} | ||
{{ | {{Output table|On success|the number of targeted players}} | ||
{{ | {{Output table}} | ||
==Examples== | ==Examples== | ||
* To privately tell Steve to start the game: {{ | * To privately tell Steve to start the game: {{cmd|link=none|tell Steve Start the game!}} | ||
* To say "Hi" to all online players: {{ | * To say "Hi" to all online players: {{cmd|link=none|msg @a Hi}} | ||
* To whisper to Makena instructions to trap Zuri: {{ | * To whisper to Makena instructions to trap Zuri: {{cmd|link=none|w Makena Trap Zuri now!}} | ||
== History == | == History == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|java alpha}} | ||
|{{HistoryLine||v1.0.16_02|Added {{ | |{{HistoryLine||v1.0.16_02|dev=server 0.1.3|Added {{cmd|msg|link=none}}, {{cmd|tell|link=none}}, and {{cmd|w|link=none}}.}} | ||
|{{ | |{{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 {{cmd|gamerule sendCommandFeedback}} is disabled.<ref>{{bug|MC-134084|resolution=Fixed}}</ref>}} | ||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|pocket alpha}} | ||
|{{HistoryLine||v0.16.0|dev=build 1|Added {{ | |{{HistoryLine||v0.16.0|dev=build 1|Added {{cmd|msg|link=none}}, {{cmd|tell|link=none}}, and {{cmd|w|link=none}}.}} | ||
}} | }} | ||
| Line 78: | Line 78: | ||
<references/> | <references/> | ||
== Navigation == | == Navigation == | ||
{{ | {{Navbox commands}} | ||
de:Befehl/msg | [[Minecraft:de:Befehl/msg]] | ||
es:Comandos/msg | [[Minecraft:es:Comandos/msg]] | ||
ja:コマンド/msg | [[Minecraft:ja:コマンド/msg]] | ||
nl:Opdrachten/msg | [[Minecraft:nl:Opdrachten/msg]] | ||
pt:Comandos/msg | [[Minecraft:pt:Comandos/msg]] | ||
ru:Команды консоли/msg | [[Minecraft:ru:Команды консоли/msg]] | ||
zh:命令/msg | [[Minecraft:zh:命令/msg]] | ||
Latest revision as of 11:08, 12 April 2026
Template:Distinguish Template:Update Template:Infobox command Sends a private message to one or more players.
Syntax
- Java Edition
- Bedrock Edition
Arguments
- Specifies the player(s) to send the message to.
- Template:Arg desc
- Specifies the message to tell.
- Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table
Examples
- To privately tell Steve to start the game: Template:Cmd
- To say "Hi" to all online players: Template:Cmd
- To whisper to Makena instructions to trap Zuri: Template:Cmd
History
Java Edition
Bedrock Edition
See also
/tellraw— send a JSON message to players.
External links
References
<references/>
Minecraft:de:Befehl/msg Minecraft:es:Comandos/msg Minecraft:ja:コマンド/msg Minecraft:nl:Opdrachten/msg Minecraft:pt:Comandos/msg Minecraft:ru:Команды консоли/msg Minecraft:zh:命令/msg