Unplugged-AFK
Unplugged-AFK 是一款环保型 Minecraft 模组,允许玩家实现“离线挂机”。通过使用该模组,玩家可以召唤一个自身的分身留在农场处保持 AFK(离线状态),而玩家本人则可以断开连接。这使得你可以安全地关闭电脑,从而节省电力,推广一种面向服务器农场的“绿色”理念!
(图片与模组图标由 Stridey 提供)
前置要求与安装
- 加载器: Fabric
- Minecraft 版本: 1.19.2 至 26.3
功能特性
- 绿色环保: 在玩家分身继续为你挂机的同时,直接关闭你的电脑。
- 自定义超时设置: 设定分身保持活跃的具体时长。默认超时时间为 129600 分钟(90 天)。
- 管理员控制: 服务器管理员拥有完整的命令控制权,可以生成、踢出或管理离线分身。
- 安全选项: 配置项允许你在死亡时重置生命值、禁用离线分身的伤害,甚至将其对其他玩家和运算符隐藏。
- 服务器重启: 该模组还会在服务器重启后稍作延迟地重新生成所有 AFK 分身。
命令
玩家命令
/unplug [<minutes>] [<reason>]:断开你的连接,并在原地留下一个离线分身。- 注意:此命令无法由单人服务器房主使用。
管理员命令
默认需要权限等级 3。
/unplugged-admin:显示关于该模组的信息。/unplugged-admin save:保存当前配置。/unplugged-admin reload:重载配置,覆盖当前配置。/unplugged-admin purge:清除玩家数据,并将当前的玩家/离线映射表与在线服务器进行同步。/unplugged-admin spawn <player> [<minutes>] [<reason>]:为指定玩家手动生成一个离线分身。/unplugged-admin kick <player>:移除/踢出一个活跃的离线分身。/unplugged-admin info [<player>]:显示特定玩家的详细调试信息。(启用advancedAdminOptions后可查看完整的“玩家”信息)/unplugged-admin list [players|unplugged|all]:列出当前跟踪的玩家或活跃的离线分身。(启用advancedAdminOptions后可使用列表子命令)/unplugged-admin set <setting> <value>:设置配置项的值。(启用advancedAdminOptions后可使用此子命令)
配置
该模组提供了一个高度可定制的 unplugged_afk.json 文件。关键选项包括:
| 分类 | 选项 | 描述 | 默认值 |
|---|---|---|---|
| 主要 | unpluggedAfkEnabled |
切换整个 AFK(空闲)功能。 | true |
| 主要 | debugMode |
启用调试输出。 | false |
| 主要 | reducedListDebugInfo |
为各种信息命令启用精简输出。 | true |
| 主要 | advancedAdminOptions |
启用高级管理员选项,例如 'set'。 | false |
| Unplugged | defaultUnpluggedTimeout |
设置默认超时时间(以分钟为单位)。默认为 90 天。 | 129600 |
| Unplugged | resetHealthUponDeath |
在 AFK 机器人被击杀时重置其生命值。 | false |
| Unplugged | unpluggedDisableDamage |
防止 AFK 机器人受到伤害。 | false |
| Unplugged | unpluggedHidePlayer |
使机器人对其他玩家不可见。 | false |
| Unplugged | unpluggedHideFromOps |
使机器人在操作员面前也隐藏。 | false |
| 命令 | unplugCommandPermissions |
使用 /unplug 所需的权限等级。 |
0 |
| 命令 | unpluggedAdminCommandPermissions |
/unplugged-admin 的权限等级。 |
3 |
| 命令 | afkCommandPermissions |
使用 /afk 所需的权限等级。 |
0 |
| 命令 | enableUnplugCommand |
启用 /unplug 命令。 |
true |
| 命令 | enableAfkCommand |
启用 /afk 命令。(与 /unplug 效果相同) |
false |
| 消息 | broadcastMessages |
启用 Unplugged 状态消息的广播。 | false |
| 消息 | hideUnpluggedJoin |
在生成机器人时,尽可能禁用默认的 player has joined 消息。 |
false |
| 消息 | displayDuration |
启用 Unplugged 状态消息中的持续时间显示。 | false |
| 消息 | displayReturnFeedback |
启用显示 Unplugged 会话结束的原因反馈。 | false |
消息与格式:
服务器管理员可以广泛自定义广播消息和格式。例如,当玩家成功使用命令时,默认的踢出消息为 "§6Your player will be AFK§r"。
当启用 displayDuration 时,duration 和 timeDate 是 CoreLib 中用于广播消息的时间格式化选项。
示例配置
Unplugged-AFK
Unplugged-AFK is an eco-friendly Minecraft mod that allows players to "go unplugged." By utilizing this mod, players can spawn a bot of themselves to stay AFK at their farms while they disconnect. This allows you to safely shut off your computer, saving electricity and promoting a "Green" approach to server farming!
( Imagery and Mod Icon courtesy of Stridey )
Prerequisites & Installation
- Mod Loader: Fabric
- Minecraft Version: 1.19.2 up to 26.3
Features
- Go Green: Turn off your PC while your player-bot continues to AFK for you.
- Customizable Timeouts: Set specific durations for how long a bot should remain active. The default timeout is 129600 minutes (90 days).
- Admin Control: Server administrators have full command control to spawn, kick, or manage unplugged players.
- Safety Options: Configurations allow you to reset health upon death, disable damage for unplugged players, or even hide them from other players and operators.
- Server Restart: The mod also respawns all AFK bots at server restart with a slight delay.
Commands
Player Commands
/unplug [<minutes>] [<reason>]: Disconnects you and leaves an unplugged bot in your place.- Note: This command cannot be used by the single-player server owner.
Admin Commands
Requires permission level 3 by default.
/unplugged-admin: Displays information about the mod./unplugged-admin save: Saves the current configuration./unplugged-admin reload: Reloads the configuration, overwriting the current configuration./unplugged-admin purge: Purges players and resyncs the current player/unplugged maps with the live server./unplugged-admin spawn <player> [<minutes>] [<reason>]: Manually spawns an unplugged bot for a specified player./unplugged-admin kick <player>: Removes/kicks an active unplugged bot./unplugged-admin info [<player>]: Displays detailed debug information for a specific player. (advancedAdminOptionsenables the full "player" info)/unplugged-admin list [players|unplugged|all]: Lists currently tracked players or active unplugged bots. (advancedAdminOptionsenables the list sub commands)/unplugged-admin set <setting> <value>: Sets a config setting value. (advancedAdminOptionsenables this sub command)
Configuration
The mod features a highly customizable unplugged_afk.json file. Key options include:
| Category | Option | Description | Default |
|---|---|---|---|
| Main | unpluggedAfkEnabled |
Toggles the entire AFK feature. | true |
| Main | debugMode |
Enables debugging output. | false |
| Main | reducedListDebugInfo |
Enables Reduced output for various information commands. | true |
| Main | advancedAdminOptions |
Enables advanced Admin options, such as 'set'. | false |
| Unplugged | defaultUnpluggedTimeout |
Set the default timeout (in minutes). The default is for 90 days. | 129600 |
| Unplugged | resetHealthUponDeath |
Resets the AFK bots Health when killed. | false |
| Unplugged | unpluggedDisableDamage |
Prevents the AFK bot from taking damage. | false |
| Unplugged | unpluggedHidePlayer |
Makes the bot invisible to others. | false |
| Unplugged | unpluggedHideFromOps |
Makes the bot invisible to to Operators as well. | false |
| Command | unplugCommandPermissions |
Permission level required to use /unplug. |
0 |
| Command | unpluggedAdminCommandPermissions |
Permission level for /unplugged-admin. |
3 |
| Command | afkCommandPermissions |
Permission level required to use /afk. |
0 |
| Command | enableUnplugCommand |
Enables the /unplug Command. |
true |
| Command | enableAfkCommand |
Enables the /afk Command. (Works the same as /unplug) |
false |
| Messages | broadcastMessages |
Enables the broadcasting of Unplugged status messages. | false |
| Messages | hideUnpluggedJoin |
Enables the disabling of the default player has joined messages while bots are spawned, where possible. |
false |
| Messages | displayDuration |
Enables the duration display of Unplugged status messages. | false |
| Messages | displayReturnFeedback |
Enables the Feedback display of the reason why an Unplugged session ended | false |
Messages & Formatting:
Server owners can extensively customize broadcast messages and formatting. For example, the default kick message when a player successfully uses the command is "§6Your player will be AFK§r".
The duration and the timeDate are CoreLib time formatting options for the broadcast messages while displayDuration is enabled.
Example Config
下载 Unplugged AFK
下载 Unplugged AFK
下载 Unplugged AFK
下载 Unplugged AFK
下载 Unplugged AFK
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Unplugged AFK
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Unplugged AFK
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Unplugged AFK
下载 Unplugged AFK
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Unplugged AFK
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 26.3
- 添加 CF 版本发布
构建信息
- 文件名:
unplugged_afk-v0.2.6-mc1.21.5.jar - SHA-256:
7b1ce15ef2e9d0f24db9911a17b2be1c44ea1c7c697efd6ec9206aebbdf6e697 - 构建来源:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧