News
Game
Guides
Downloads
Versions
/kick
COMMANDS SERVER ADMIN SERVER · LEVEL 3 Added in 1.14 or earlier

/kick command in Minecraft

/kick disconnects one or more players and can show them a reason. Unlike a ban, the player can reconnect at once, so it works as a warning. It is mostly used on dedicated servers, from the console or by an operator, but it also works in a LAN world.

Syntax

/kick <targets> [<reason>]

// In single player with cheats on, you have level 4, so it works there too.

ArgumentExpectsWhat it does
targetsPlayer selectorone or severalOnline player name or selector, such as Steve or @a[name=!Steve]; offline players cannot be kicked.
reasonoptionalMessageOptional text that replaces Kicked by an operator on the player's screen.
All 2 forms
  • /kick <targets>
  • /kick <targets> <reason>

Examples

Kick a player

/kick Steve

Steve is disconnected with the message Kicked by an operator.

Java 26.3

Kick with a reason

/kick Steve Read the rules at spawn

Steve sees your reason on the disconnect screen and can rejoin.

Java 26.3

Kick everyone except yourself

/kick @a[name=!Steve] Server maintenance

Disconnects all online players except Steve, for example before maintenance.

Java 26.3
Build your command

Fill in the fields, then copy the command.

Command generator

What the player sees

Without a reason, the screen says Kicked by an operator. With a reason, your text replaces it, so keep it short and clear. The kick is not saved anywhere and the player can rejoin right away. To keep someone out, use /ban; to block everyone who is not invited, turn on the /whitelist.

Selectors and limits

Targets must be online, otherwise you get No player was found. Selectors work, but be careful with @a: it includes you when you type it in the chat. Exclude yourself with @a[name=!YourName]. In a LAN world, the host cannot be kicked (Cannot kick the server owner in a LAN game), and in a singleplayer world that is not open to LAN the command has nobody to kick.

Useful combinations

Check exact names first with /list. Before maintenance, warn players with /say, then kick everyone except the staff. To disconnect players who stay away from the keyboard automatically, set a limit with /setidletimeout.

✓ Checked in Java Edition 26.3 · updated 2 November 2026

/kick: FAQ

Can a kicked player come back?

Yes, immediately. A kick is not saved anywhere; use /ban to keep someone out.

How do I kick everyone except myself?

Use a selector that excludes your name, for example /kick @a[name=!Steve] Server maintenance.

How do I use /kick?

In single player with cheats on, or on a server as an operator or from the server console: /kick <targets> [<reason>].

Who can use /kick?

Server operator, level 3. In single player with cheats on, you have level 4, so it works there too.

Related commands