Minecraft:Commands/kick: Difference between revisions
More actions
imported>LauraFii →History: split |
Fix template calls: add MC/ prefix |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
* 3 {{only|java|short=1}} | * 3 {{only|java|short=1}} | ||
* 1 {{only|bedrock|short=1}} | * 1 {{only|bedrock|short=1}} | ||
|others=No | |others=No command blocks{{only|java|short=1}} | ||
}} | }} | ||
Kicks a | Kicks a player off the [[Minecraft:server]], and displays an optional reason to it. | ||
The player in a single player world or the host of a world cannot be kicked. | The player in a single player world or the host of a world cannot be kicked. | ||
| Line 20: | Line 20: | ||
== Arguments == | == Arguments == | ||
{{ | {{MC/Argument|targets|entity|name: target|CommandSelector<Player>}} | ||
: Specifies the player(s) to be kicked. Only 1 player to be kicked{{only|be}}. | : Specifies the player(s) to be kicked. Only 1 player to be kicked{{only|be}}. | ||
: {{ | : {{MC/Arg desc|je=entity|amount=multiple|type=players|be=player}} | ||
: {{ | : {{MC/In|bedrock}}, it can also be an XUID (Xbox UID) of a player. | ||
{{ | {{MC/Argument|reason|message|reason: message|CommandMessage}} | ||
: Message to display to the kicked player. {{ | : Message to display to the kicked player. {{MC/In|java}}, if unspecified, defaults to <code>Kicked by an operator</code>. | ||
: {{ | : {{MC/Arg desc|je=message|be=CommandMessage}} | ||
==Result== | ==Result== | ||
| Line 41: | Line 41: | ||
== Output == | == Output == | ||
{{Output table}} | {{MC/Output table}} | ||
{{Output table|edition=je|On fail|N/A|0|0}} | {{MC/Output table|edition=je|On fail|N/A|0|0}} | ||
{{Output table|On success|N/A|1|the number of targeted players}} | {{MC/Output table|On success|N/A|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|1}} | {{MC/Output table|On success|1}} | ||
{{Output table}} | {{MC/Output table}} | ||
== History == | == History == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java classic}} | |{{MC/HistoryLine|java classic}} | ||
|{{HistoryLine||0.0.16a|Added {{ | |{{HistoryLine||0.0.16a|Added {{MC/Cmd|kick|link=none}}.}} | ||
|{{HistoryLine|java indev}} | |{{MC/HistoryLine|java indev}} | ||
|{{HistoryLine||0.31|Due to Indev's lack of support for servers, commands are no longer usable.}} | |{{MC/HistoryLine||0.31|Due to Indev's lack of support for servers, commands are no longer usable.}} | ||
|{{HistoryLine|java alpha}} | |{{MC/HistoryLine|java alpha}} | ||
|{{HistoryLine||v1.0.16|{{ | |{{HistoryLine||v1.0.16|{{MC/Cmd|kick|link=none}} is now usable again.}} | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.20.3|dev=23w40a|The {{ | |{{HistoryLine||1.20.3|dev=23w40a|The {{MC/Cmd|kick|link=none}} no longer kicks the player in a single player world or the host in a LAN world.}} | ||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|bedrock}} | |{{MC/HistoryLine|bedrock}} | ||
|{{HistoryLine||1.16.0|dev=beta 1.16.0.57|Added {{ | |{{HistoryLine||1.16.0|dev=beta 1.16.0.57|Added {{MC/Cmd|kick|link=none}}.}} | ||
}} | }} | ||
| Line 72: | Line 72: | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/kick | |||
es:Comandos/kick | |||
ja:コマンド/kick | |||
ko:명령어/kick | |||
pt:Comandos/kick | |||
ru:Команды консоли/kick | |||
th:คำสั่ง/kick | |||
uk:Команди консолі/kick | |||
zh:命令/kick | |||
Latest revision as of 20:11, 9 April 2026
Kicks a player off the Minecraft:server, and displays an optional reason to it.
The player in a single player world or the host of a world cannot be kicked.
Syntax
- Java Edition
kick <targets> [<reason>]
- Bedrock Edition
kick <name: target> [reason: message]
Arguments
Template:El: <targets>: entity
Template:El: name: target: CommandSelector<Player>
- Specifies the player(s) to be kicked. Only 1 player to be kickedTemplate:Only.
- {{#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|}}
- in Template:Editions, it can also be an XUID (Xbox UID) of a player.
Template:El: <reason>: message
Template:El: reason: message: CommandMessage
- Message to display to the kicked player. in Template:Editions, if unspecified, defaults to
Kicked by an operator. - {{#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 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}}|N/A}}{{#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}}|N/A}}{{#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}}|1}}{{#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|}}
History
Java Edition
Bedrock Edition
External links
de:Befehl/kick es:Comandos/kick ja:コマンド/kick ko:명령어/kick pt:Comandos/kick ru:Команды консоли/kick th:คำสั่ง/kick uk:Команди консолі/kick zh:命令/kick