AFKGuard 是一款轻量且可靠的 AFK(挂机)检测插件,专为希望在不被滥用的前提下提供公平奖励的现代 Minecraft 服务器打造。它能准确区分真实的不活跃状态、宏操作、环境移动以及误触玩家输入,确保只有合法的 AFK 时间才能获得奖励。AFKGuard 在设计时充分考虑了性能与兼容性,可在支持 Bedrock 的 Java 版服务器上无缝运行。
本插件提供精确的状态追踪,根据可配置规则将玩家划分为 ACTIVE(活跃)、IDLE(空闲)和 AFK(挂机)三种状态。奖励可在全局、单个世界或特定区域内发放,让服务器管理员完全掌控 AFK 奖励的适用范围与应用方式。通过集成 WorldGuard,可实现基于区域的进阶行为控制,而无需增加不必要的性能开销。
AFKGuard 提供了灵活的 UI 选项用于显示 AFK 倒计时,支持 BossBar(Boss 血条)或副标题(Subtitle)两种显示模式。副标题模式针对 Java 版与 Bedrock 版玩家进行了优化,避免了其他插件常见的闪烁问题。所有 UI 行为、阈值设置及奖励逻辑均完全可配置,并支持热重载,无需重启服务器即可生效。
为追求高效运行,AFKGuard 采用轻量级的每秒一次(one-second tick)循环机制,并对玩家加入与离开事件进行了妥善处理,以防止内存泄漏或数据残留。
命令
/afkguard reload — 重新加载配置文件,无需重启服务器
权限
afkguard.reload — 允许使用重载命令
可选依赖项
- WorldGuard — 启用基于区域的 AFK 规则
配置亮点
- 针对不同世界和区域设置独立的 AFK 规则
- 可自定义 AFK 时间阈值
- 完全可配置的奖励执行命令
- 智能运动过滤功能,忽略生物推动等无效移动
- 支持在 BossBar 与副标题倒计时显示之间自由选择
适用场景
- 生存类服务器
- AFK 刷钱池/经验池设置
- 经济导向型服务器
- 兼容 Bedrock 的网络服务器
AFKGuard is a lightweight and reliable AFK detection plugin built for modern Minecraft servers that want fair rewards without abuse. It accurately distinguishes real inactivity from macro use, environmental movement, and accidental player input, ensuring only legitimate AFK time is rewarded. Designed with performance and compatibility in mind, AFKGuard works seamlessly on Java servers with Bedrock support.
This plugin provides precise state tracking, moving players through ACTIVE, IDLE, and AFK states based on configurable rules. Rewards can be granted globally, per world, or within specific regions, allowing server owners full control over where and how AFK rewards apply. WorldGuard integration enables advanced region-based behavior without adding unnecessary overhead.
AFKGuard includes flexible UI options for displaying AFK countdowns, supporting either a BossBar or a Subtitle-based display. The Subtitle mode is optimized for Java & Bedrock players and avoids flickering issues common with other plugins. All UI behavior, thresholds, and reward logic are fully configurable and can be reloaded without restarting the server.
Built to be efficient, AFKGuard runs on a lightweight one-second tick loop and includes clean handling for player joins and quits to prevent memory leaks or stale data.
Commands
/afkguard reload — Reload the configuration without restarting the server
Permissions
afkguard.reload — Allows use of the reload command
Optional Dependencies
- WorldGuard — Enables region-specific AFK rules
Configuration Highlights
- Separate AFK rules for worlds and regions
- Customizable AFK time thresholds
- Fully configurable reward commands
- Intelligent movement filtering that ignores mob pushes
- Choice between BossBar or subtitle countdown displays
Ideal For
- Survival servers
- AFK pool setups
- Economy-focused servers
- Bedrock-compatible networks
评论 0
登录后参与评分
还没有评论,来抢沙发吧