SimpleAFK

此模组为服务器提供简单的 AFK(闲置)管理功能。
它提供了以下配置能力:
- 玩家何时被标记为 AFK。
- 玩家因 AFK 时间过长而被踢出服务器的时机(如果启用)。
- 用于格式化 AFK 消息、踢出消息以及标签页列表中玩家名称的格式选项。
在检查睡觉玩家比例时,会跳过处于 AFK 状态的玩家。
这将覆盖原版的 setIdleTimeout 命令,并忽略其中设置的任何值。

Configuration
Simple AFK 旨在具备高度可配置性,以便任何服务器都能按其意愿进行设置。 在服务器配置文件中,您可以找到以下选项:
注意: 括号内定义的默认值仅在您未使用权限模组时才有效。
secondsBeforeAfk:玩家在最后一次移动后多少秒被标记为 AFK。secondsBeforeKick:玩家被标记为 AFK 后多少秒将被踢出,设置为 0 则禁用踢出功能。isNowAfkMessage:自定义玩家变为 AFK 时全局消息的显示样式。 支持颜色代码isNoLongerAfkMessage:自定义玩家不再处于 AFK 状态时全局消息的显示样式。 支持颜色代码playerNameFormat:定义标签页列表中玩家处于 AFK 状态时的名称格式。 支持颜色代码afkKickMessage:定义玩家达到设定的秒数后被踢出时的消息样式。 支持颜色代码
Permission Nodes
如果您使用了权限系统,Simple AFK 会引入一些标准的权限节点。
simpleafk.toggle- 允许玩家切换自己的 AFK 状态(默认:所有人拥有此权限)simpleafk.toggle.target- 允许玩家切换其他玩家的 AFK 状态(默认:仅 OP 拥有此权限)simpleafk.bypass- 允许玩家绕过 AFK 状态(即不会被标记为 AFK,也不会被踢出)(默认:仅 OP 拥有此权限)simpleafk.bypass_sleep- 允许玩家绕过 睡眠所需百分比 检查(默认:仅 OP 拥有此权限)
Wiki
请查阅 wiki 以获取详细文档。
如果您认为 wiki 中有任何缺失或不清晰的内容,请在 Discord 中发送消息或提交 改进文档的问题。
Roadmap
查看版本 里程碑
Links
加入我的 Discord 以获取支持和更新!(刚刚创建,功能尚基础)
Thanks to
SimpleAFK

This mod enables simple AFK management for servers.
It provides the ability to configure:
- when a player is marked as afk.
- when (if at all) a player is kicked for being afk too long.
- Formatting options to format the afk message, kick message and afk name in tab list.
It skips players that are AFK when checking for the percentage of players sleeping.
This overrides the vanilla setIdleTimeout command, and discards any values set in there.

Configuration
Simple AFK aims to be highly configurable, to allow for any server to make it act the way they want. In the server config file, you will find the following options:
NOTE: The default defined in () only matters if you are NOT using a permission mod.
secondsBeforeAfkwhich is how many seconds after a last player movement the player is marked as afk.secondsBeforeKickwhich is how many seconds after the player has been marked as afk they are going to be kicked, set to 0 to disable kicking.isNowAfkMessageis a string where you can customize how the global message should look when a player goes afk. This allows for color codesisNoLongerAfkMessageis a string where you can customize how the global message should look when a player is no longer afk. This allows for color codesplayerNameFormatis how the tablist is formatted for when a player is afk. This allows for color codesafkKickMessageis how the message should look when a player gets kicked after the amount of seconds defined. This allows for color codes
Permission Nodes
Simple AFK introduces some standard permission nodes if you are using a permission system.
simpleafk.toggle- Allows the player to toggle their AFK status (Default: Everyone has this permission)simpleafk.toggle.target- Allows the player to toggle another player's AFK status (Default: Only OP's has this permission)simpleafk.bypass- Allows the player to bypass AFK status (Meaning they won't get marked as AFK and won't get kicked) (Default: Only OP's has this permission)simpleafk.bypass_sleep- Allows the player to bypass the sleep required percentage check (Default: Only OP's have this permission)
Wiki
Check out the wiki for detailed documentation.
If you think anything is missing from the wiki that is unclear, send a message in the discord or open an improve documentation issue.
Roadmap
Check out the version milestones
Links
Join my Discord for support and updates! (Just created, so barebones)
Thanks to
- jaredlll08 for creating
Multiloader-Template
下载 SimpleAFK
下载 SimpleAFK
下载 SimpleAFK
下载 SimpleAFK
下载 SimpleAFK
下载 SimpleAFK
下载 SimpleAFK
下载 SimpleAFK
下载 SimpleAFK
下载 SimpleAFK
1.5.2 - 26.3
- 移植到 26.3
1.5.2 - 1.21.1
- 修复了 AFK(离线挂机)计算问题,未正确统计头部移动和身体移动的 AFK 时间。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
? 使用命令保存和加载玩家或他人的背包/套装。
模组
一个基于构建器的 Minecraft 配置库!
模组
一款轻量级模组,允许服务器管理员对抗透视作弊者。
模组
通过图形界面控制模组加载。适用于需要可选功能的整合包和服务器,也适合不想手动操作文件而希望直接管理模组的极客用户。
模组
使聊天消息以平滑的动画效果显示。
模组
一个完整经济模组:玩家余额、动态定价商店、玩家市场、买入订单、货币物品以及网页仪表盘。
评论 0
登录后参与评分
还没有评论,来抢沙发吧