promotional bannermobile promotional banner
premium banner
A Minecraft Mod that allows you to go AFK without the worry of having to log off :D

Description

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