⏱️ svrUptime
每天两次简洁的聊天广播——让每个人都能看到你的世界已经运行了多久。
svrUptime 默默统计你的世界已存在的时间,并在 Minecraft 一天的两个自然转折点——黎明和黄昏——进行播报。没有仪表盘,也没有记分板 clutter:只有日出时清晰的聊天读数、夜幕降临时的简短氛围提示,以及中间任何时候都可以使用的 /uptime 命令。它完全在服务器端运行,因此原版客户端可以连接并看到所有消息,在单人游戏中也能完美工作。“第 4,217 天” 带来的感觉远比空荡荡的清晨天空要深刻得多。
? 1.2.7 版新增: 睡觉不再导致天数计数偏低,两个时钟现在精确到刻度(tick),/uptime query 可以分别查询任意一个时钟,并且新增了一个管理员开关来决定“真实时间”是否计算睡眠快进的时间。一个 jar 包适用于所有 Minecraft 26.x 版本——从 26.1 到 26.3。
✨ 功能特性
- ? 每日两次广播,基于游戏内时钟。 在黎明(每个 Minecraft 天的开始,约 06:00)发送完整的运行时长报告,在黄昏(约 18:00,刻度 12000)发送简短的氛围提示——每天各触发一次。
- ?️ 双重视角,精确到刻度。 (26.x) 每次报告都以两种方式显示运行时长:Minecraft 时间(将游戏内天数累积为月→年→十年→……→千年日历)和真实时间(秒→分钟→小时→天→……→十年)。两者都精确到具体刻度,确保读数不会被四舍五入。
- ? 睡眠感知的天数计数。 (26.x) 当玩家通过睡觉度过夜晚时,这些天数依然会被计入——天数与实际经历的日出次数匹配,而不仅仅是服务器模拟所花费的时间。管理员可以决定真实时间是否也计算这些时间:是世界时间,还是服务器的实际运行时间。
- ⌨️ 按需使用
/uptime。 任何人都可以随时查询当前的运行时长,单独查询任一时钟,并选择向上累积的单位大小——从刻度一直到千年。(按时钟查询和刻度单位:26.x。)
- ? 可配置的早晨和傍晚消息。 设置您自己的黎明和黄昏文本——支持标准的 Minecraft
§ 颜色代码——在一个纯 JSON 文件中。
- ?️ 独立开关。 分别开启或关闭运行时长广播、早晨消息和傍晚消息——在游戏中实时生效,无需重启。
- ♻️ 热重载。 编辑配置文件后,通过管理员命令即时应用更改。
- ? 服务器端且通用。 一个 jar 包同时支持 Fabric 和 NeoForge;原版客户端无需任何额外内容,在单人游戏中同样适用。
⌨️ 命令
所有操作都基于 /uptime,其中 /ut 是其简写别名,适用于所有子命令。query 和 help 对所有玩家开放;admin 分支需要管理员权限。
| 命令 |
访问权限 |
功能说明 |
/uptime query |
所有人 |
显示完整的运行时长报告(一直累积到千年) |
/uptime query <unit> |
所有人 |
同上报告,但限制在所选的最大单位——ticks(刻度)、days(天)、months(月)、years(年)、decades(十年)、centuries(世纪)、millennia(千年) |
/uptime query gametime [unit] |
所有人 |
(26.x) 仅显示 Minecraft 时间,单位列表同上 |
/uptime query realtime [unit] |
所有人 |
(26.x) 仅显示 真实时间 —— ticks(刻度)、seconds(秒)、minutes(分钟)、hours(小时)、days(天)、months(月)、years(年)、decades(十年) |
/uptime help |
所有人 |
列出可用命令(管理员行仅对管理员可见) |
/uptime admin broadcast enable|disable |
管理员 |
切换每日运行时长报告的开关 |
/uptime admin morning enable|disable |
管理员 |
切换黎明(早晨)消息的开关 |
/uptime admin evening enable|disable |
管理员 |
切换黄昏(傍晚)消息的开关 |
/uptime admin sleeptime enable|disable |
管理员 |
(26.x) 真实时间是否计算睡眠快进的时间——启用:世界时间 · 禁用:服务器实际运行时间 |
/uptime admin status |
管理员 |
显示当前开关状态、世界时钟、已执行的刻度、它们之间快进的间隙以及经过的真实天数 |
/uptime admin reload |
管理员 |
从磁盘重新读取 svruptime.json |
/ut 是完全重定向——在任何你可以输入 /uptime 的地方,/ut 都能以相同方式工作(例如 /ut query years、/ut admin status …)。
标记为 (26.x) 的行是在 1.2.7 中引入的。1.21.x 的移植版运行 1.2.5,它包含其他所有功能——请注意,在该版本中,运行时长仅计算服务器实际运行的刻度,因此通过睡觉跳过的夜晚不会增加计数。
⚙️ 配置
配置文件位于 config/svruptime.json,首次启动时会根据以下默认值创建,并可通过 /uptime admin reload 热重载。两个消息字符串均支持标准的 Minecraft § 颜色/格式代码,布尔标志与 /uptime admin … 命令所切换的开关相同——游戏内的更改会直接写回文件,因此命令状态与文件内容始终保持一致。
{
"broadcastEnabled": true, // 在黎明时发送完整的运行时间报告
"morningMessageEnabled": true, // 在黎明时发送晨间消息
"eveningMessageEnabled": true, // 在黄昏时发送晚间消息
"realTimeIncludesSleep": true, // 在现实时间(26.x)中计入睡眠快进
"morningMessage": "§6☀ A new day has begun.",
"eveningMessage": "§9☾ The night has come."
}
? 兼容性
|
|
| 加载器 |
Fabric 和 NeoForge —— 一个 jar 包同时兼容两者 |
| Minecraft |
26.1 – 26.3 —— 一个 jar 包,版本 v1.2.7 · 1.21.11 和 1.21 – 1.21.10 —— 版本 v1.2.5 (不包含仅适用于 26.x 的功能) |
| Fabric API |
Fabric 端必需 · NeoForge 端不需要 |
| 侧向 |
服务端 —— 支持原版客户端,也支持单人游戏 |
| 额外库 |
无 |
喜欢这个模组吗?加入 Discord · 给 仓库 点星 ⭐ · 浏览 Lunixia 的 Minecraft QOL 模组 系列的其他作品
⛏️ 小巧专注的模组,去除繁琐操作。
⏱️ svrUptime
Two clean chat broadcasts a day — let everyone see exactly how long your world has been running.
svrUptime keeps a quiet running tally of how long your world has existed and announces it at the two natural turning points of the Minecraft day — dawn and dusk. No dashboards, no scoreboard clutter: just a clean chat readout when the sun comes up, a short flavor line when night falls, and an /uptime command for anyone curious in between. It runs entirely server-side, so vanilla clients can connect and see every message, and it works just as well in single-player. "Day 4,217" hits differently than a blank morning sky.
? New in 1.2.7: sleeping no longer undercounts the day number, both clocks now read down to the tick, /uptime query can ask either clock on its own, and a new admin toggle decides whether Real Time counts time slept through. One jar runs on every Minecraft 26.x release — 26.1 through 26.3.
✨ Features
- ? Two daily broadcasts, on the in-game clock. A full uptime report at dawn (start of each Minecraft day, ~06:00) and a short flavor line at dusk (~18:00, tick 12000) — each fires exactly once per day.
- ?️ Dual time views, down to the tick. (26.x) Every report shows uptime two ways: Minecraft Time (in-game days rolled up into a months → years → decades → … → millennia calendar) and Real Time (seconds → minutes → hours → days → … → decades). Both bottom out at exact ticks, so a reading is never rounded off.
- ? Sleep-aware day count. (26.x) When your players sleep through the night, those days still count — the day number matches the sunrises they actually lived through, not just the time the server spent simulating. An admin toggle decides whether Real Time counts them too: world time, or the server's actual runtime.
- ⌨️
/uptime on demand. Anyone can query the current uptime at any moment, ask for either clock on its own, and choose how large a unit to roll up to — from ticks all the way to millennia. (Per-clock queries and tick units: 26.x.)
- ? Configurable morning & evening messages. Set your own dawn and dusk text — standard Minecraft
§ color codes supported — in a plain JSON file.
- ?️ Independent toggles. Turn the uptime broadcast, the morning message, and the evening message on or off separately — live, in-game, no restart.
- ♻️ Live reload. Edit the config and apply it instantly with an admin command.
- ? Server-side & universal. One jar runs on Fabric and NeoForge; vanilla clients need nothing, and it works in single-player too.
⌨️ Commands
Everything hangs off /uptime, with /ut as a shorthand alias for all of it. query and help are open to everyone; the admin branch requires gamemaster / operator permission.
| Command |
Access |
What it does |
/uptime query |
Everyone |
Show the full uptime report (rolled all the way up to millennia) |
/uptime query <unit> |
Everyone |
Same report, capped at a chosen largest unit — ticks, days, months, years, decades, centuries, millennia |
/uptime query gametime [unit] |
Everyone |
(26.x) Minecraft Time only, same unit list as above |
/uptime query realtime [unit] |
Everyone |
(26.x) Real Time only — ticks, seconds, minutes, hours, days, months, years, decades |
/uptime help |
Everyone |
List available commands (admin lines shown only to admins) |
/uptime admin broadcast enable|disable |
Admin |
Toggle the daily uptime report |
/uptime admin morning enable|disable |
Admin |
Toggle the dawn (morning) message |
/uptime admin evening enable|disable |
Admin |
Toggle the dusk (evening) message |
/uptime admin sleeptime enable|disable |
Admin |
(26.x) Whether Real Time counts the time sleeping fast-forwarded through — enabled: world time · disabled: actual server runtime |
/uptime admin status |
Admin |
Show current toggles, the world clock, executed ticks, the fast-forwarded gap between them, and real days elapsed |
/uptime admin reload |
Admin |
Re-read svruptime.json from disk |
/ut is a full redirect — anywhere you'd type /uptime, /ut works identically (/ut query years, /ut admin status, …).
Rows marked (26.x) arrived in 1.2.7. The 1.21.x back-ports run 1.2.5, which has everything else — note that there, uptime still counts only the ticks the server actually ran, so nights slept through don't add to it.
⚙️ Configuration
The config lives at config/svruptime.json, is created on first launch with the defaults below, and hot-reloads with /uptime admin reload. Both message strings accept standard Minecraft § color/format codes, and the boolean flags are the same switches flipped by /uptime admin … — in-game changes are written straight back to the file, so command state and the file never drift apart.
{
"broadcastEnabled": true, // send the full uptime report at dawn
"morningMessageEnabled": true, // send the morning message at dawn
"eveningMessageEnabled": true, // send the evening message at dusk
"realTimeIncludesSleep": true, // count sleep fast-forward in Real Time (26.x)
"morningMessage": "§6☀ A new day has begun.",
"eveningMessage": "§9☾ The night has come."
}
? Compatibility
|
|
| Loaders |
Fabric and NeoForge — one jar runs on both |
| Minecraft |
26.1 – 26.3 — one jar, v1.2.7 · 1.21.11 and 1.21 – 1.21.10 — v1.2.5 (no 26.x-only features) |
| Fabric API |
Required on Fabric · not needed on NeoForge |
| Side |
Server-side — vanilla clients supported, single-player too |
| Extra libraries |
None |
Enjoying it? Hop in the Discord · ⭐ the repo · explore the rest of Lunixia's Minecraft QOL Mods
⛏️ Small, focused mods that cut out the boring stuff.
评论 0
登录后参与评分
还没有评论,来抢沙发吧