
ModsJava
AFK Commands
Java mod listed for Minecraft 1.21–26.x. Downloads from the MC Java Mods app on Android.
⬇ Download on Modrinth
AFK Plugin
A lightweight Spigot plugin that automatically detects inactive players and runs any console command of your choice against them. No bloat, no dependencies — just drop it in and configure.
✦ Features
- Tracks every online player's last activity (walking, clicking, breaking blocks, chatting, and more)
- Fires a fully customizable console command when a player goes AFK
- Use
{playername}anywhere in the command — it automatically inserts the AFK player's username - Optionally warns the player a set number of seconds before the command fires
- Optionally broadcasts to the whole server when someone goes AFK
- Compatible with any other plugin's commands — kick, ban, LuckPerms, economy plugins, anything
✦ Example Config
afk-time: 300
afk-command: "kick {playername} You have been kicked for being AFK too long."
warn-before-seconds: 30
afk-warn-message: "&eYou have been AFK for too long and will be removed from the server."
broadcast-afk: true
broadcast-message: "&7[&eAFK&7] &f{playername} &7is now AFK."
✦ Commands
| Command | Description | Permission |
|---|---|---|
/afk |
Shows your current inactivity time vs. the AFK threshold | afk.use |
/afkreload |
Reloads the config without restarting | afk.reload |
✦ Permissions
| Permission | Description | Default |
|---|---|---|
afk.use |
Use the /afk command |
Everyone |
afk.reload |
Reload the config | Ops |
afk.exempt |
Never flagged as AFK | Nobody |
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21, 1.21.1, 1.21.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
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
- Ships as AFKPlugin-1.0.0.jar — drop this file into the mods folder
- Download size: 10 KB
- Download link checked 4 Oct 2026 — working
These come from our own check of the pack file, not from the source page.