Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/kick

Command

/kick

Disconnects players from the server, with an optional reason shown to them.

Syntax

/kick <targets> [<reason>]

Arguments

ArgumentKind of valueWhat to type
<targets>Target selectorThe players to kick, as a name or a target selector. One or more players.
<reason>MessageThe message shown to the kicked players. Everything after the targets is used as the reason. Optional.

Details

Permission level3: server operators with level 3 or higher
Works inOperators with level 3 or higher on multiplayer servers, the server console, and the owner of a singleplayer world with cheats enabled. Command blocks and functions cannot run it, because they only have level 2. It works on multiplayer servers and in worlds opened to LAN, but not in a singleplayer world that is not open to others.
ResultReports "Kicked <player>: <reason>" for each player. The number /execute store saves is the number of players kicked.
ReasonWithout a reason, the kicked player sees the standard kick message of the game.
SingleplayerIn a singleplayer world that is not opened to LAN the command fails with "Cannot kick in an offline singleplayer game".
World ownerThe owner of a world opened to LAN cannot be kicked. If nobody else was kicked, the command fails with "Cannot kick the server owner in a LAN game".
No banA kicked player can join again right away.

Examples

/kick Alex

Disconnects the player Alex with the standard message.

/kick Alex Please follow the server rules

Disconnects Alex and shows the given reason.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)