AntiAFK is a high-performance, lightweight Paper plugin designed to keep your player slots fresh by removing idle users without impacting server TPS.
Features:
YAML
# Time in seconds before a player is kicked
afk-timeout-seconds: 300
# When to start showing the countdown warning (in seconds)
warning-seconds: 30
# Only kick players if there are at least this many people online
min-players-to-kick: 1
# Messages (Supports color codes with &)
kick-message: "&c[ANTIAFK] &fNo AFKing allowed!"
warn-message: "&c&lAFK WARNING: &7You will be kicked in &e%s &7seconds!"
Permissions:
Features:
- Zero-Lag Detection: Unlike basic plugins, this uses a scheduled "heartbeat" check instead of monitoring every single player movement, saving massive CPU cycles.
- Action Bar Warnings: Warns players via a countdown on their Action Bar when they are about to be kicked.
- Smart Threshold: Set a minimum player count so the plugin only starts kicking people when the server actually has a certain amount of players online.
- Actual Movement Only: Players cannot bypass the check by simply spinning their mouse; they must physically change coordinates.
- Admin Commands: Reload the config on the fly with /antiafk reload.
- Deep Customization: Full color code support (&c) for all messages.
YAML
# Time in seconds before a player is kicked
afk-timeout-seconds: 300
# When to start showing the countdown warning (in seconds)
warning-seconds: 30
# Only kick players if there are at least this many people online
min-players-to-kick: 1
# Messages (Supports color codes with &)
kick-message: "&c[ANTIAFK] &fNo AFKing allowed!"
warn-message: "&c&lAFK WARNING: &7You will be kicked in &e%s &7seconds!"
Permissions:
- antiafk.bypass: Players with this (and OPs) will never be kicked.
- antiafk.admin: Allows use of /antiafk reload.
