Minecraft Wiki
Minecraft Wiki
kick
Permission level
required

3‌[JE only]
1‌[BE only]

Restrictions

No command blocks‌[JE only]

Kicks a player off the server.

Syntax[]

  • Java Edition
kick <target> [<reason>]
  • Bedrock Edition
kick <name: target> [reason: message]

Arguments[]

JE<targets>: entity
BE: player: target: CommandSelector<Player>

Specifies the player(s) to be kicked.
Must be a player name, a target selector or a UUID[Java Edition only]. And the target selector must be of player type.
In Bedrock Edition, it can also be an XUID (Xbox UID) of a player.

JE<reason>: message
BE: reason: message: CommandMessage

Message to display to the kicked player. In Java Edition, if unspecified, defaults to Kicked by an operator.
Must be a plain text. 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, @here can be used to mention all players.

Result[]

CommandTriggerJava EditionBedrock Edition
anythe arguments are not specified correctly Unparseable Failed
<targets> or player: target fails to resolve to one or more online players Failed
the player is the host of the world. N/A
On successForcibly disconnects the players from the server, displaying an optional reason to them.

Output[]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
anyJava EditionOn failN/A00
On successN/A1the number of targeted players
Bedrock EditionOn fail0N/AN/A
On successthe number of targeted players[needs testing]N/AN/A

History[]

Java Edition Classic
0.0.15a (Multiplayer Test 3)Added /kick.
Java Edition Indev
0.31Removed all commands.
Java Edition Alpha
v1.0.16Re-added /kick.
Bedrock Edition
1.16.0beta 1.16.0.57Added /kick.