Minecraft:Commands/kick: Difference between revisions
From SAS Gaming Wiki
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft |
||
| 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 command blocks{{only|java|short=1}} | |others=No [[Minecraft:command blocks]]{{only|java|short=1}} | ||
}} | }} | ||
Kicks a player off the [[Minecraft:server]], and displays an optional reason to it. | Kicks a [[Minecraft: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 == | ||
{{ | {{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}}. | ||
: {{ | : {{arg desc|je=entity|amount=multiple|type=players|be=player}} | ||
: {{ | : {{IN|bedrock}}, it can also be an XUID (Xbox UID) of a player. | ||
{{ | {{argument|reason|message|reason: message|CommandMessage}} | ||
: Message to display to the kicked player. {{ | : Message to display to the kicked player. {{IN|java}}, if unspecified, defaults to <code>Kicked by an operator</code>. | ||
: {{ | : {{arg desc|je=message|be=CommandMessage}} | ||
==Result== | ==Result== | ||
| Line 41: | Line 41: | ||
== Output == | == Output == | ||
{{ | {{Output table}} | ||
{{ | {{Output table|edition=je|On fail|N/A|0|0}} | ||
{{ | {{Output table|On success|N/A|1|the number of targeted players}} | ||
{{ | {{Output table|edition=be|On fail|0}} | ||
{{ | {{Output table|On success|1}} | ||
{{ | {{Output table}} | ||
== History == | == History == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|java classic}} | ||
|{{HistoryLine||0.0.16a|Added {{ | |{{HistoryLine||0.0.16a|Added {{cmd|kick|link=none}}.}} | ||
|{{ | |{{HistoryLine|java indev}} | ||
|{{ | |{{HistoryLine||0.31|Due to Indev's lack of support for servers, commands are no longer usable.}} | ||
|{{ | |{{HistoryLine|java alpha}} | ||
|{{HistoryLine||v1.0.16|{{ | |{{HistoryLine||v1.0.16|{{cmd|kick|link=none}} is now usable again.}} | ||
|{{ | |{{HistoryLine|java}} | ||
|{{HistoryLine||1.20.3|dev=23w40a|The {{ | |{{HistoryLine||1.20.3|dev=23w40a|The {{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}} | ||
|{{HistoryLine||1.16.0|dev=beta 1.16.0.57|Added {{ | |{{HistoryLine||1.16.0|dev=beta 1.16.0.57|Added {{cmd|kick|link=none}}.}} | ||
}} | }} | ||
| Line 72: | Line 72: | ||
== Navigation == | == Navigation == | ||
{{ | {{Navbox commands}} | ||
de:Befehl/kick | [[Minecraft:de:Befehl/kick]] | ||
es:Comandos/kick | [[Minecraft:es:Comandos/kick]] | ||
ja:コマンド/kick | [[Minecraft:fr:Commandes/kick]] | ||
ko:명령어/kick | [[Minecraft:ja:コマンド/kick]] | ||
pt:Comandos/kick | [[Minecraft:ko:명령어/kick]] | ||
ru:Команды консоли/kick | [[Minecraft:pt:Comandos/kick]] | ||
th:คำสั่ง/kick | [[Minecraft:ru:Команды консоли/kick]] | ||
uk:Команди консолі/kick | [[Minecraft:th:คำสั่ง/kick]] | ||
zh:命令/kick | [[Minecraft:uk:Команди консолі/kick]] | ||
[[Minecraft:zh:命令/kick]] | |||
Latest revision as of 11:03, 17 May 2026
Kicks a Minecraft: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
- Specifies the player(s) to be kicked. Only 1 player to be kickedTemplate:Only.
- Template:Arg desc
- Template:IN, it can also be an XUID (Xbox UID) of a player.
- Message to display to the kicked player. Template:IN, if unspecified, defaults to
Kicked by an operator. - Template:Arg desc
Result
Template:Result table 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
History
Java Edition
Bedrock Edition
External links
Minecraft:de:Befehl/kick Minecraft:es:Comandos/kick Minecraft:fr:Commandes/kick Minecraft:ja:コマンド/kick Minecraft:ko:명령어/kick Minecraft:pt:Comandos/kick Minecraft:ru:Команды консоли/kick Minecraft:th:คำสั่ง/kick Minecraft:uk:Команди консолі/kick Minecraft:zh:命令/kick