跳到正文

SimpleAFK

作者:legenden

SimpleAFK is a mod that enables simple server AFK management

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

SimpleAFK

AFK Tab List

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._

AFK Messages

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._

  • secondsBeforeAfk which is how many seconds after a last player movement the player is marked as afk.
  • secondsBeforeKick which is how many seconds after the player has been marked as afk they are going to be kicked, set to 0 to disable kicking.
  • isNowAfkMessage is a string where you can customize how the global message should look when a player goes afk. _This allows for color codes_
  • isNoLongerAfkMessage is a string where you can customize how the global message should look when a player is no longer afk. _This allows for color codes_
  • playerNameFormat is how the tablist is formatted for when a player is afk. _This allows for color codes_
  • afkKickMessage is 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

常见问题

SimpleAFK 支持哪些 Minecraft 版本?

SimpleAFK 支持 Minecraft Java 版 1.18–26.3,共 15 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

SimpleAFK 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

legenden 的其他作品

查看全部 →