Limited AFK
一个相当直接的服务器端模组,用于限制玩家挂机(AFK)的时间并追踪所有玩家的游玩时长。
此模组仅应安装在服务器上。
玩家指令
/playtime告知玩家他们在服务器上花费的实际时间和挂机时间/afklist列出在线玩家及其是否处于挂机状态
管理员指令与配置
可以通过加载到服务器时生成的属性文件进行配置,也可以通过指令进行配置。
/playtime <player>获取指定玩家的游玩时长/playtime all获取所有登录过服务器的玩家的游玩时长。结果会输出到控制台,并为管理员提供剪贴板副本。/playtime actions <player>获取自玩家执行了被 AFK 算法追踪的任一动作以来所经过的时间量。/limitedafk获取当前的配置设置/limitedafk enabled <true/false>启用/禁用 AFK 追踪器/limitedafk ignoreCreativeAndSpectator <true/false>设置 AFK 追踪器是否应将创造模式和旁观模式玩家标记为挂机/limitedafk allowedAfkPercentage <0-100>设置在被踢出之前,玩家可以花费在挂机状态下的游玩时长百分比/limitedafk announceAfk <true/false>设置当玩家进入或退出挂机状态时是否在聊天中发布公告消息/limitedafk afkTimer <60+>设置玩家需要无活动多少秒才会被标记为挂机/limitedafk defaultAfkDetectionLevel <LOW/MEDIUM/HIGH>设置默认的 AFK 检测激进程度(LOW 和 MEDIUM 需要不同级别的活跃度,而 HIGH 需要验证码)/limitedafk captchaTimer <120+>设置向疑似挂机的玩家提供验证码之间的间隔时间(以秒为单位)/limitedafk logCommandUsage <true/false>设置是否将成功的指令执行记录到服务器控制台/afklevel get <player>获取指定玩家所需的修改后(或默认)的 AFK 检测等级/afklevel set <player> <LOW/MEDIUM/HIGH>设置指定玩家所需的修改后的 AFK 检测等级/afklevel reset <player>将指定玩家所需的修改后的 AFK 检测等级重置为默认值
权限节点
LimitedAFK 使用 Fabric Permissions API 来处理指令权限。每个节点都有一个回退的原版权限等级,适用于没有权限模组的服务器。
通用
| 节点 | 默认值 | 描述 |
|---|---|---|
limitedafk.afklist |
ALL |
使用 /afklist 查看谁处于挂机状态 |
limitedafk.playtime |
ALL |
使用 /playtime 检查自己的游玩时长 |
limitedafk.playtime.others |
GAMEMASTERS |
使用 /playtime <player> 检查其他玩家的游玩时长 |
limitedafk.playtime.all |
GAMEMASTERS |
使用 /playtime all 导出所有玩家的游玩时长 |
limitedafk.playtime.actions |
GAMEMASTERS |
使用 /playtime actions <player> 检查玩家的动作时间戳 |
limitedafk.afklevel.get |
GAMEMASTERS |
使用 /afklevel get <player> 读取玩家的 AFK 检测等级 |
limitedafk.afklevel.set |
GAMEMASTERS |
使用 /afklevel set <player> <level> 更改玩家的 AFK 检测等级 |
limitedafk.afklevel.reset |
GAMEMASTERS |
使用 /afklevel reset <player> 将玩家的 AFK 检测等级重置为默认值 |
配置
配置指令会根据 BorisLib 中的每个配置值自动生成。
| 节点 | 默认值 | 描述 |
|---|---|---|
limitedafk.config |
GAMEMASTERS |
通过 /limitedafk 列出所有配置值 |
limitedafk.config.<name>.get |
GAMEMASTERS |
读取特定配置值 |
limitedafk.config.<name>.set |
GAMEMASTERS |
更改特定配置值 |
尝试我的其他模组!
所有服务器端 Fabric 模组 —— 无需安装客户端。
| 模组 | 描述 | 链接 | |
|---|---|---|---|
![]() |
Arcana Novum | Minecraft 最大的仅限服务器的全功能魔法模组!添加强力物品、多区块结构和 Boss! | |
![]() |
Ancestral Archetypes | 一款高度可配置的类 Origins 模组,允许玩家选择一种生物以获取独特能力! | |
![]() |
Ender Nexus | 将所有高可配置的 /home、/spawn、/warp、/tpa 和 /rtp 命令合而为一,并可单独禁用。 | |
![]() |
Fabric Mail | 一个游戏内虚拟邮箱系统,用于在在线和离线玩家之间发送包裹和信息。 | |
![]() |
Fabric Trade | 添加 /trade 命令,提供安全的玩家间交易界面。 | |
![]() |
Limited AFK | 闲置检测与管理,为服务器配置可调整的踢出阈值。 |
|
| 聊天中的链接 | 使在聊天中发布的 URL 可点击。 | |
许可证声明
以任何形式使用本项目,即表示您对本项目许可证条款给予“明确同意”,并确认我(BorisShoes)已履行许可证中规定的义务,即在合理可行的情况下尽力获得接收者对本许可证条款的“明确同意”。
Limited AFK
A fairly straight-forward server-sided mod to limit how much your players can AFK and tracks all players' playtime.
This mod should only be installed on a server.
Player Commands
/playtimeTells the player how much real-time they have played and AFK'd on the server/afklistLists the players online and who is/isn't AFK
Admin Commands & Configuration
Configuration can be done through the properties file generated when loaded on a server or through commands.
/playtime <player>Gets the playtime of the specified player/playtime allGets the playtime of all players who have logged on the server. Dumps to console and gives a clipboard copy to the admin./playtime actions <player>Gets the amount of time since a player has performed one of the actions tracked by the AFK algorithm./limitedafkGets the current configuration settings/limitedafk enabled <true/false>Enables/disables the AFK tracker/limitedafk ignoreCreativeAndSpectator <true/false>Sets whether the AFK tracker should mark Creative and Spectator players as AFK/limitedafk allowedAfkPercentage <0-100>Sets the percentage of a player's playtime can be spent AFK before kicking them/limitedafk announceAfk <true/false>Sets whether a chat message is announced when a player goes AFK or comes back from AFK/limitedafk afkTimer <60+>Sets how many seconds of inactivity it takes until a player is marked as AFK/limitedafk defaultAfkDetectionLevel <LOW/MEDIUM/HIGH>Sets how aggressive the AFK detection is by default (LOW and MEDIUM require various levels of activity, and HIGH requires a captcha)/limitedafk captchaTimer <120+>Sets the interval between when someone suspected of being AFK is given a captcha (in seconds)/limitedafk logCommandUsage <true/false>Sets whether successful command executions are logged to the server console/afklevel get <player>Gets the modified (or default) AFK detection level required for the specified player/afklevel set <player> <LOW/MEDIUM/HIGH>Sets the modified AFK detection level required for the specified player/afklevel reset <player>Resets the modified AFK detection level required for the specified player to the default value
Permission Nodes
LimitedAFK uses the Fabric Permissions API for command permissions. Each node has a fallback vanilla permission level for servers without a permissions mod.
General
| Node | Default | Description |
|---|---|---|
limitedafk.afklist |
ALL |
Use /afklist to see who is AFK |
limitedafk.playtime |
ALL |
Use /playtime to check your own playtime |
limitedafk.playtime.others |
GAMEMASTERS |
Use /playtime <player> to check another player's playtime |
limitedafk.playtime.all |
GAMEMASTERS |
Use /playtime all to dump playtime for all players |
limitedafk.playtime.actions |
GAMEMASTERS |
Use /playtime actions <player> to check a player's action timestamps |
limitedafk.afklevel.get |
GAMEMASTERS |
Use /afklevel get <player> to read a player's AFK detection level |
limitedafk.afklevel.set |
GAMEMASTERS |
Use /afklevel set <player> <level> to change a player's AFK detection level |
limitedafk.afklevel.reset |
GAMEMASTERS |
Use /afklevel reset <player> to reset a player's AFK detection level to default |
Config
Config commands are generated automatically by BorisLib per config value.
| Node | Default | Description |
|---|---|---|
limitedafk.config |
GAMEMASTERS |
List all config values via /limitedafk |
limitedafk.config.<name>.get |
GAMEMASTERS |
Read a specific config value |
limitedafk.config.<name>.set |
GAMEMASTERS |
Change a specific config value |
Try My Other Mods!
All server-side Fabric mods — no client installation required.
| Mod | Description | Links | |
|---|---|---|---|
![]() |
Arcana Novum | Minecraft's biggest server-only full-feature Magic Mod! Adds powerful items, multiblocks and bosses! | |
![]() |
Ancestral Archetypes | A highly configurable, Origins-style mod that lets players pick a mob to gain unique abilities! | |
![]() |
Ender Nexus | Highly configurable /home, /spawn, /warp, /tpa and /rtp commands all in one, and individually disablable. | |
![]() |
Fabric Mail | An in-game virtual mailbox system for sending packages and messages between online and offline players. | |
![]() |
Fabric Trade | Adds /trade, a secure player-to-player trading interface. | |
![]() |
Limited AFK | AFK detection and management with configurable kick thresholds for servers. | |
![]() |
Links in Chat | Makes URLs posted in chat clickable. |
LICENSE NOTICE
By using this project in any form, you hereby give your "express assent" for the terms of the license of this project, and acknowledge that I, BorisShoes, have fulfilled my obligation under the license to "make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License.
下载 Limited AFK
下载 Limited AFK
下载 Limited AFK
下载 Limited AFK
下载 Limited AFK
下载 Limited AFK
下载 Limited AFK
下载 Limited AFK
下载 Limited AFK
下载 Limited AFK
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。





评论 0
登录后参与评分
还没有评论,来抢沙发吧