Compatibility
Minecraft: Java Edition
26.1.x
1.21.x
Platforms
Tags
Creators
Details
Licensed ARR
Published yesterday
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 |


