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

Switch game

23 Wikis · pick your game
/setidletimeout

Command

/setidletimeout

Sets how many minutes a player may stay idle before the server kicks them.

Syntax

/setidletimeout <minutes>

Arguments

ArgumentKind of valueWhat to type
<minutes>Whole numberThe idle time in minutes, a whole number of 0 or more. 0 disables the timeout. At least 0.

Details

Permission level3: server operators with level 3 or higher
Works inDedicated multiplayer servers only; it does not exist in singleplayer or in worlds opened to LAN. Needs permission level 3 (admins): the server console or an operator with level 3 or higher. Command blocks and functions cannot run it, because their permission level is 2.
ResultReports "The player idle timeout is now N minute(s)", or "The player idle timeout is now disabled" for 0. The number /execute store saves is the number of minutes.
Turning it offA value of 0 turns the idle kick off.
What happensA player who has done nothing for longer than the set time is disconnected with the message "You have been idle for too long!".

Examples

/setidletimeout 10

Kicks players who have been idle for more than 10 minutes.

/setidletimeout 0

Turns the idle kick off.

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)