Description (EN)
AntiAFKPlugin is a lightweight, fully configurable solution to detect inactive players and run automatic commands after a set time. Prevent AFK farming, keep your economy fair, and redirect players (e.g. to spawn) after inactivity – with full customization!
️ Features
- ⏱️ Detect AFK players based on inactivity (movement, chat, interaction)
- Run any command (like /spawn) as the player
- Play a configurable Gong sound on AFK trigger
- ⚙️ Full message customization via config.yml
- /antiafk reload to apply changes instantly
- /antiafk check <player> to see who's AFK
- ℹ️ /antiafk info for plugin version + credits
- ✅ Includes tab completion for all commands
- Resets AFK timer only after real player activity
Permissions
yaml
antiafk.use - Allows /antiafk reload, check, info (default: OP)
✅ Example Config
yaml
afk-time-seconds: 60
afk-command: spawn