Kick after 15 idle minutes
/setidletimeout 15Players who do nothing for 15 minutes are disconnected.

/setidletimeout sets how many minutes a player can stay inactive before the server disconnects them. Set it to 0 to turn the limit off. It is a dedicated server command for the console and for operators with level 3 or more.
/setidletimeout <minutes>// Only on a dedicated server: the command does not exist in single player or in a world opened to LAN.
| Argument | Expects | What it does |
|---|---|---|
| minutes | Whole numberat least 0 | Idle time in minutes before a player is disconnected, for example 15; 0 turns the limit off. |
/setidletimeout 15Players who do nothing for 15 minutes are disconnected.
/setidletimeout 0Nobody is disconnected for being inactive any more.
Fill in the fields, then copy the command.
Command generatorA player who neither moves nor acts for the set time is disconnected with You have been idle for too long!. The server confirms a new value with The player idle timeout is now 15 minute(s). It frees slots on a full server; on a small server between friends, a long value or 0 is often more comfortable, since AFK farms need someone to stay online.
Disconnected players can come back right away, as with /kick. Check who is online with /list.
✓ Checked in Java Edition 26.3 · updated 2 November 2026
Run /setidletimeout 0. Players are then never disconnected for being inactive.
No. The player is only disconnected and can join again at once.
On a server, as an operator or from the server console: /setidletimeout <minutes>. It does not exist in single player.
Server operator, level 3. Only on a dedicated server: the command does not exist in single player or in a world opened to LAN.
/kickServer/fetchprofileCheats/listEveryone/opServer/deopServer/banServer/ban-ipServer/banlistServer