介绍
AFKStatus – Simple AFK Detection for Servers
!\[\](https://media.forgecdn.net/attachments/description/1318335/description\_49b50151-d6ab-43be-bb54-6c133719fb55.png)
AFKStatus is a lightweight, server-side mod for Minecraft, built on the NeoForge and Forge mod loader. It automatically tracks player activity and marks users as AFK (Away From Keyboard) when they stop moving or chatting for a configurable period. Players can also manually toggle AFK status using a simple /afk command.
Features
Automatic AFK detection
Detects inactivity by tracking movement and chat activity. Players are marked as AFK after a configurable timeout and broadcasted as such.
Manual AFK toggle
/afk command lets players manually set or clear AFK status.
Customizable timeouts
Set the AFK trigger delay and optional kick timeout via config.
Optional auto-kicking
Automatically kicks players who stay AFK beyond a set time.
Custom messages and colors
System messages are customizable, including color options.
Scoreboard integration
Uses Minecraft’s team system to visually tag AFK players with [AFK].
Server-only
No client-side installation required. Just drop the mod into your server’s mods/ folder.

Configuration
After the first server launch, a configuration file (afkstatus-server.toml) is created in your config/ directory.
afkTriggerTimer — Minutes of inactivity before a player is market afk.
Default: 5
Range: 1-60 minutes
afkKickTimer — Minutes after being AFK before being kicked.
Default: 0 (disabled)
Range: 0-120 minutes
kickMessage — Kick message that is shown to the player once he is kicked.
systemMessages — Whether to broadcast AFK status changes.
Default: false
Options: true / false
checkIntervalTick — How often to check AFK status.
(20 ticks = 1 second)
Default: 20
Range: 1-1200 ticks
messageColor — Messages color.
Default: yellow
detection.enabled — If true, mouse look (camera rotation) counts as activity.
Default: false
detection.thresholdDegrees — Minimum change in yaw/pitch required to count as activity.
Default: 5
Range: 1-45 degrees
Valid colors: black, dark_blue, dark_green, dark_aqua, dark_red, dark_purple, gold, gray, dark_gray, blue, green, ¨C25C, ¨C26C, ¨C27C, ¨C28C, ¨C29C
bypassEnabled
Bypasses afk players for sleep percentage
Blacklist
AFKStatus includes a flexible blacklist system to exclude specific players from the automatic AFK kick functionality. This is useful for server staff, trusted players, or bots that need to remain connected despite inactivity.
- Storage: Blacklist entries are saved as JSON file (
afk_blacklist.json) insideconfig/AFKStatus/directory. - Commands: Admins can change the blacklist in-game using
/afk blacklistsubcommands. - Behaviour:
- Blacklisted players are tracked for AFK status and tagged normally.
- Blacklisted players will not be kicked for being AFK, regardless of the configured kick timer.
Commands
/afk — Toggles your AFK status. Automatically broadcasts status changes to others.
/afk help— Shows the help instructions for AFKStatus commands.
Commands below require administrator permissions
/afk blacklist add — Adds a player to the AFK blacklist. Blacklisted players can go AFK but will not be kicked automatically.
/afk blacklist remove — Removes a player from the AFK blacklist.
/afk blacklist list — Lists all players currently on the AFK blacklist.
afk blacklist reload — Reloads blacklist from disk, useful if edited manually.
This lets players manually indicate they’re AFK or return without moving or chatting.
常见问题
AFKStatus 支持哪些 Minecraft 版本?
AFKStatus 支持 Minecraft Java 版 1.20.1–1.21.11,共 12 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
AFKStatus 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
saunhardy 的其他作品
查看全部 →Climbable Ropes for Create Aeronautics
为 Create Aeronautics 的垂直绳索添加空手攀爬模式。空手右键抓住绳索,按 W/S 攀爬,按空格跳下,按潜行松手。
Dyeable Ropes for Create Aeronautics
Adds 16 dye-colored ropes to Create: Aeronautics. Craft any rope with a dye, or right-click a placed strand to recolor it on the spot.
Dyeable Ropes for Create Aeronautics
Adds 16 dye-colored ropes to Create: Aeronautics. Craft any rope with a dye, or right-click a placed strand to recolor it on the spot.
Createrington Currency
Custom currency mod for Createrington modpack and server.

评论
登录后评论和评分