Set a Minecraft AFK Timeout Without Unnecessary Access Changes
player-idle-timeout determines how many minutes a Minecraft Java server waits before disconnecting idle players. A value of 0 disables this automatic kick; it does not pause the server or close it to new connections.
player-idle-timeout determines how many minutes a Minecraft Java server waits before disconnecting idle players. 0 disables this automatic kick. It does not pause the server or close it to new connections. Do not change the whitelist or sign-in protection for this purpose.
Minutes, Not Seconds
Paper documents player-idle-timeout as a value in minutes: when the value is greater than zero, players are kicked after being idle for more than that many minutes. The default is 0. Paper's documentation also lists actions that reset the counter, including inventory clicks, mining or placing blocks, chat, and interactions with entities. Measured inactivity therefore reflects activity the server recognizes, not a universal AFK detection method. PaperMC: server.properties
The original Vanilla Minecraft Java Edition 26.3 code confirms the default value of 0 and converts the value to milliseconds with TimeUnit.MINUTES. The inspected timeout branch does not check operator status: an OP is not exempt there solely because of their permissions. The code has a separate exception for players who have completed the game. This statement is limited to the inspected Vanilla artifact; a plugin, fork, or other version can differ. Mojang: original Minecraft Java Edition 26.3 server artifact
Distinguish Timeout, Server Pause, and Whitelist
A timeout disconnects individual idle players. As long as at least one person is online, the server is not empty and pause-when-empty-seconds does not start counting. If the last idle player is kicked, a separately configured pause for an empty server may begin afterward. These are two independent rules that can run in sequence. The article Pause an Empty Minecraft Server explains the defaults and effects on farms and tick-based activity.
The whitelist controls which profiles may join. It is neither an AFK timer nor a way to automatically disconnect one player. white-list=false would open access to profiles that are not listed. Leave this value unchanged if you only want to set a timeout. For access entries and how to check them, see Set Up a Minecraft Whitelist.
Set the Timeout Safely
First check whether your server runs Minecraft Java, and which platform and version it actually uses. Paper lists the key in its current reference; for older versions and forks, check the matching documentation and existing file. The general guide to editing server.properties safely helps you find the correct instance.
- Record the current value. Open the
server.propertiesfile for the running instance as text and note the existing entry. Save a private copy of the file so you can restore the previous value. - Stop the server cleanly. Announce the brief stop and wait for the process to end completely. Do not edit the configuration while the world is running.
- Change only the relevant value. For example,
player-idle-timeout=15means the server can disconnect a player after more than 15 minutes without recognized activity. Withplayer-idle-timeout=0, the automatic AFK kick remains disabled. Edit the existing line; do not add a duplicate key. - Check startup and behavior. Start the server normally and confirm that the expected software loaded. First test the selected limit with a regular test account on a test instance; do not rely on operator permissions as an exception. An action the server recognizes, such as a chat message, should reset the counter according to Paper's documentation.
- Leave access rules alone. If in doubt, check
player-idle-timeout, notwhite-list,online-mode, or operator levels. Those settings answer different questions and can change joining or authentication.
If a player is disconnected despite a value of 0, first check that you edited the correct file and server instance. A plugin may have its own timeout or disconnect connections for other reasons; check the exact console message before changing more values. If nobody is disconnected, recognized activity may reset the timer or the installed version may handle the setting differently.
An AFK timeout is not a performance diagnosis. If the server is lagging, measure the issue with the Minecraft server lag guide instead of using the timeout as a CPU fix. Change only the setting that controls the behavior you want, and check the result with a test account.
Technical Sources
- PaperMC: server.properties – the value in minutes, default 0, and documented activity packets.
- Mojang: original Minecraft Java Edition 26.3 server artifact – static inspection of the Vanilla default, minute conversion, and timeout branch without an operator check.
- PaperMC: Vanilla-like experience – distinction from pausing an empty server and Paper-specific differences.
Did this guide help? We are happy to help personally.