Home›Java›Mods›AFK Timer
AFK Timer
ModsJava

AFK Timer

Java mod listed for Minecraft 1.16–1.21. Downloads from the MC Java Mods app on Android.

by TheAGamePlayer · on CurseForge

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.1 · NeoForge⬇ Download for 1.20.6 · NeoForge⬇ Download for 1.20.4 · NeoForge⬇ Download for 1.20.1 · NeoForge⬇ Download for 1.20.1 · Forge⬇ Download for 1.19.4 · Forge⬇ Download for 1.19.3 · Forge⬇ Download for 1.19.2 · Forge⬇ Download for 1.18.2 · Forge⬇ Download for 1.17.1 · Forge⬇ Download for 1.16.5 · Forge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
AFK Timer — screenshot 1

Version 2.0.4.0R is now out for 1.21.1!

The mod no longer needs to be installed on the client side & server side and is now optional.

Client & Server sides of the mod now function independently of each other.

Client side commands now work on Vanilla Servers & Realms without problems.

Client side commands will also work on modded servers that do not include the mod.

Discord:

https://discord.gg/WAgx39BG

What does the mod do?

AFK Timer adds 8 new commands allowing the player to set a time for them to automatically log off, presumably to be used while sitting at farms overnight.

Client Commands:

"afktimer client start <time> <quitGame>"

Starts the client-side timer, beginning the count down to when the player will disconnect from the server to leave a single player world.

<time> - How many ticks, seconds, or in-game days you want to set the timer to run for.

<quitGame> - A boolean, if true, will not only disconnect the player, but will close Minecraft when the timer runs out.

"afktimer client stop"

Stops the client timer and therefore will no longer disconnect the player.

"afktimer client extend <time>"

Extends the client timer to run for more time than previously set when the timer began.

<time> - How much longer the timer is to run.

"afktimer client query"

Tells the player how much time is left on the client timer before they are disconnected (If the result is 0, the timer is not active).

Server Commands: (Dedicated Servers only)

"afktimer server start <time>" (Op only)

Starts the server-side timer, beginning the count down to when the server is to stop.

"afktimer server stop" (Op only)

Stops the server timer, preventing it from shutting own.

"afktimer server extend <time>" (Op only)

Extends the server time to delay the shut down.

<time> - How much longer the timer is to run.

"afktimer server query"

Tells the player how much time is left on the server timer before the server stops (If the result is 0, the timer is not active).

Q&A:

Q: Can I use this mod in my modpack?

A: Feel free to do so!

Q: Can AFK Timer be used client-side only?

A: As of version 2.0.0.0R, yes.

Q: Do I have to install the mod on the both the client and server?

A: As of version 2.0.0.0R, it is no longer required on both the client & server.

Q: Where can I suggest features and report bugs?

A: https://github.com/TheAGamePlayer/AFK-Timer/issues

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more