服务器唤醒提醒
一款适用于 Minecraft 1.21.11 的轻量级服务端 Fabric 模组,用于监控服务器的深度睡眠状态,并在服务器唤醒时向你发出通知。
Minecraft 服务器内置了一项功能(自 Java_Edition_24w33a 即 1.21.2 版本起),当服务器处于空闲状态时会暂停其游戏刻循环(server.properties 中的 pause-when-empty-seconds 参数),以节省 CPU 资源。然而,原版 Minecraft 仅在服务器进入睡眠时记录日志,而不会在唤醒时记录。此模组修复了这一问题。
✨ 功能
- 唤醒通知: 在玩家加入服务器并从深度睡眠状态恢复服务器的瞬间,自动向服务器控制台发送一条消息。
- 状态命令: 包含一个仅限控制台的命令,用于查看服务器进入深度暂停前剩余的确切时间。
? 命令
/timeuntilpause
- 用法: 仅限控制台(对玩家隐藏)。
- 描述: 返回服务器暂停其游戏刻循环前剩余的确切秒数;如果服务器当前正处于深度暂停状态,则会进行提示。
?️ 安装
仅限服务端。 你无需在客户端安装此模组。
只需将 .jar 文件放入服务器的 mods 文件夹即可。
要求:
- Minecraft
1.21.11
- Fabric Loader
>=0.16.0
- Fabric API
Alert Server Wake Up
A lightweight, server-side Fabric mod for Minecraft 1.21.11 that monitors the server's deep sleep state and alerts you when it wakes up.
Minecraft servers have a built-in feature (since Java_Edition_24w33a aka 1.21.2) to pause their tick loop when empty (pause-when-empty-seconds in server.properties) to save CPU resources. However, vanilla Minecraft only logs when the server goes to sleep, not when it wakes up. This mod fixes that.
✨ Features
- Wake Up Notification: Automatically sends a message to the server console the exact moment a player joins and unpauses the server from a deep sleep state.
- Status Command: Includes a console-only command to check the exact time remaining before the server enters deep pause.
? Commands
/timeuntilpause
- Usage: Console only (hidden from players).
- Description: Returns the exact number of seconds left before the server suspends its tick loop, or notifies if the server is currently in a deep pause.
?️ Installation
Server-side only. You do not need to install this mod on the client.
Just drop the .jar file into your server's mods folder.
Requirements:
- Minecraft
1.21.11
- Fabric Loader
>=0.16.0
- Fabric API
评论 0
登录后参与评分
还没有评论,来抢沙发吧