AFK Logout

Quick rating

Community listing page, reviews may not be monitored by the author.

AFK Logout

By Gav1s

No reviews yet

Auto-disconnects you if you take damage while AFK. Customizable AFK delay, heart threshold and hotkey.

Mod Loaders
Minecraft
26.3

About

Description

AFK Logout

This mod automatically disconnects you if you take damage while you're AFK, so you don't die while away from the game.

How it works

AFK detection: the timer starts when you stop doing anything. It resets when you move, press a key, attack, use an item, move the camera or open a screen (inventory, chat, etc.).

Disconnect: while AFK mode is active, any damage that leaves you at or below your chosen number of hearts disconnects you immediately.
Moving cancels it: as soon as you do anything, AFK mode turns off.

Works with any damage: fire, lava, drowning, falling, mobs, players, poison, starvation and more. Damage absorbed by golden hearts doesn't count.

Settings

AFK delay: 1-3600 seconds (default is 30)

Disconnect at hearts: 1-20 (default is 20, which means any damage).

Example: with 3, you're disconnected only if damage leaves you at 3 hearts or fewer.

On/Off hotkey: default K, rebindable

Open the settings through Mod Menu → AFK Logout.
Settings save automatically.

Notes

Client-side only, works in singleplayer and on servers. It reacts after the damage happens, so it can't stop a single hit that kills you from full health.