AFK Reminder Mod
一个适用于 Minecraft 服务器的全面 AFK(离开键盘)检测与通知系统。此模组会自动检测玩家何时处于不活跃状态,并提供可自定义的通知以鼓励玩家参与。
功能
自动 AFK 检测
- 移动追踪:监控玩家位置、相机旋转和移动
- 可配置计时器:设置自定义的 AFK 检测时间(默认:15 分钟)
- 智能检测:区分真正的离线状态和短暂停顿
视觉通知
- 标题显示:屏幕上出现醒目且突出的 AFK 通知
- 自定义消息:配置多条随机消息以增加多样性
- 持久显示:在玩家重新活跃之前,通知将保持可见
- GUI 缩放兼容:与所有 Minecraft GUI 缩放设置配合使用
手动 AFK 控制
- 命令支持:使用
/afk 手动设置 AFK 状态
- 切换功能:再次执行
/afk 移除 AFK 状态
- 移动覆盖:任何玩家移动都会自动移除 AFK 状态
- 服务器通知:当玩家进入或退出 AFK 状态时广播消息
配置系统
- JSON 配置:易于编辑的配置文件
- 自定义消息:添加您自己的 AFK 提醒消息
- 灵活计时:调整 AFK 检测间隔以适应您的服务器
- 热重载:配置更改无需重启服务器即可生效
命令
/afk
- 权限:默认对所有玩家可用
- 功能:手动切换 AFK 状态
- 用法:在聊天栏中直接输入
/afk
- 自动补全:包含客户端选项卡补全
- 行为:
- 首次使用:将玩家设置为 AFK 并显示通知
- 第二次使用:移除 AFK 状态
- 移动:无论此前如何设置,任何移动都会自动移除 AFK 状态
安装
服务端安装
- 从 Modrinth 下载最新版本的 AFK Reminder Mod
- 将
.jar 文件放入服务器的 mods 文件夹中
- 确保您的服务器上已安装 Fabric Loader
- 重启服务器
客户端安装(可选)
- 在 Minecraft 客户端上安装 Fabric Loader
- 下载并将模组放入客户端的
mods 文件夹中
- 使用 Fabric 配置文件启动 Minecraft
依赖项
- Fabric Loader:0.16.14 或更高版本
- Fabric API:0.116.0 或更高版本
- Minecraft:1.21.1
玩法说明
工作原理
该模组在后台持续监控玩家的活动状态。当玩家在配置的时间段内(默认 15 分钟)保持静止时,系统将触发 AFK 通知。
玩家体验
- 无缝集成:不会干扰正常游戏流程
- 清晰的通知:明显但不具侵入性的 AFK 警报
- 灵活的控制:玩家可在需要时手动将自己设为 AFK
- 自动恢复:简单的移动即可移除所有 AFK 指示器
服务器优势
- 玩家参与度:鼓励积极参与
- 资源管理:帮助识别不活跃的玩家
- 社区意识:其他玩家知道某人是否处于 AFK 状态
- 可定制的行为:根据您的需求定制系统
配置
该模组会在 config/afkreminder.json 创建以下结构的配置文件:
{
"afkTimeMinutes": 15,
"afkMessages": [
"You have been AFK for a while!",
"Are you still there?",
"Time to get back in the game!",
"Your character feels lonely...",
"Reality is calling!"
]
}
自定义选项
- AFK 计时器:修改
afkTimeMinutes 以更改检测灵敏度
- 消息池:在
afkMessages 数组中添加或修改消息
- 消息多样性:系统会从可用消息中随机选择
- 服务器特定:每个服务器都可以拥有独特的配置
支持
兼容性
- 服务器类型:兼容 Fabric 服务器
- 多人游戏:专为多人环境设计
- 性能:轻量级,对服务器影响极小
- 可扩展性:高效处理多个并发玩家
故障排除
- 配置问题:验证配置文件中的 JSON 语法
- 命令问题:确保正确安装了 Fabric API
- 显示问题:检查 Minecraft 版本兼容性
- 性能:监控服务器控制台是否有错误消息
获取帮助
- 问题报告:在项目的问题跟踪器上提交错误报告
- 功能请求:通过项目仓库提出改进建议
- 文档:参考模组的 Wiki 以获取详细的配置指南
- 社区:加入项目社区论坛进行讨论
版本信息
- 当前版本:1.0-SNAPSHOT
- 目标 Minecraft:1.21.1
- Fabric Loader:0.16.14+
- 最后更新:请查看 Modrinth 页面以获取最新的发布信息
该模组正在积极维护并定期更新,以确保与最新的 Minecraft 版本和 Fabric 生态系统变化保持兼容。
AFK Reminder Mod
A comprehensive AFK (Away From Keyboard) detection and notification system for Minecraft servers. This mod automatically detects when players become inactive and provides customizable notifications to encourage player engagement.
Features
Automatic AFK Detection
- Movement Tracking: Monitors player position, camera rotation, and movement
- Configurable Timer: Set custom AFK detection time (default: 15 minutes)
- Intelligent Detection: Distinguishes between genuine inactivity and brief pauses
Visual Notifications
- Title Display: Large, prominent AFK notifications appear on screen
- Customizable Messages: Configure multiple random messages for variety
- Persistent Display: Notifications remain visible until player becomes active
- GUI Scale Compatible: Works properly with all Minecraft GUI scale settings
Manual AFK Control
- Command Support: Use
/afk to manually set AFK status
- Toggle Functionality: Execute
/afk again to remove AFK status
- Movement Override: Any player movement automatically removes AFK status
- Server Notifications: Broadcast messages when players go AFK or return
Configuration System
- JSON Configuration: Easy-to-edit configuration file
- Custom Messages: Add your own AFK reminder messages
- Flexible Timing: Adjust AFK detection intervals to suit your server
- Hot Reload: Configuration changes apply without server restart
Commands
/afk
- Permission: Available to all players by default
- Function: Toggle AFK status manually
- Usage: Simply type
/afk in chat
- Auto-complete: Includes client-side tab completion
- Behavior:
- First use: Sets player as AFK and displays notification
- Second use: Removes AFK status
- Movement: Automatically removes AFK status regardless of how it was set
Installation
Server Installation
- Download the latest version of AFK Reminder Mod from Modrinth
- Place the
.jar file in your server's mods folder
- Ensure you have Fabric Loader installed on your server
- Restart your server
Client Installation (Optional)
- Install Fabric Loader on your Minecraft client
- Download and place the mod in your client's
mods folder
- Launch Minecraft with the Fabric profile
Dependencies
- Fabric Loader: 0.16.14 or higher
- Fabric API: 0.116.0 or higher
- Minecraft: 1.21.1
Gameplay
How It Works
The mod continuously monitors player activity in the background. When a player remains stationary for the configured duration (default 15 minutes), the system triggers an AFK notification.
Player Experience
- Seamless Integration: No interruption to normal gameplay
- Clear Notifications: Obvious but non-intrusive AFK alerts
- Flexible Control: Players can set themselves AFK manually when needed
- Automatic Recovery: Simple movement removes all AFK indicators
Server Benefits
- Player Engagement: Encourages active participation
- Resource Management: Helps identify inactive players
- Community Awareness: Other players know when someone is AFK
- Customizable Behavior: Tailor the system to your server's needs
Configuration
The mod creates a configuration file at config/afkreminder.json with the following structure:
{
"afkTimeMinutes": 15,
"afkMessages": [
"You have been AFK for a while!",
"Are you still there?",
"Time to get back in the game!",
"Your character feels lonely...",
"Reality is calling!"
]
}
Customization Options
- AFK Timer: Modify
afkTimeMinutes to change detection sensitivity
- Message Pool: Add or modify messages in the
afkMessages array
- Message Variety: The system randomly selects from available messages
- Server-Specific: Each server can have unique configurations
Support
Compatibility
- Server Types: Compatible with Fabric servers
- Multiplayer: Designed for multiplayer environments
- Performance: Lightweight with minimal server impact
- Scalability: Efficiently handles multiple concurrent players
Troubleshooting
- Configuration Issues: Verify JSON syntax in config file
- Command Problems: Ensure Fabric API is properly installed
- Display Issues: Check Minecraft version compatibility
- Performance: Monitor server console for any error messages
Getting Help
- Issue Reporting: Submit bug reports on the project's issue tracker
- Feature Requests: Suggest improvements through the project repository
- Documentation: Refer to the mod's wiki for detailed configuration guides
- Community: Join the discussion in the project's community forums
Version Information
- Current Version: 1.0-SNAPSHOT
- Target Minecraft: 1.21.1
- Fabric Loader: 0.16.14+
- Last Updated: Check Modrinth page for latest release information
This mod is actively maintained and regularly updated to ensure compatibility with the latest Minecraft versions and Fabric ecosystem changes.
评论 0
登录后参与评分
还没有评论,来抢沙发吧