Empty Server Stopper
懒得去问 Empty/Sleeping Server Stopper 模组作者更新他的名字和 URL

一个 Fabric 模组,当服务器为空或玩家数量低于特定阈值时会自动关闭服务器。
非常适合与休眠脚本或 SleepingServerStarter 工具配合使用(见下文)。
用法
命令
所有命令都需要游戏管理员权限等级(OP 等级 2),除了 time 和 min_players,它们可以通过配置文件向所有玩家开放。
| 命令 |
描述 |
/ess reload |
重新加载配置文件并重新评估关机状态。 |
/ess time |
显示距离关机剩余的时间。 |
/ess time set <minutes> |
设置并持久化一个新的关机延迟,然后使用该值重启计时器。 |
/ess enable |
启用模组逻辑并开始检查玩家数量。 |
/ess disable |
禁用模组逻辑并停止任何正在运行的计时器。 |
/ess restart |
如果适用,手动重新评估并重新启动关机倒计时。 |
/ess min_players |
显示当前的最低玩家阈值。 |
/ess min_players set <n> |
设置并持久化一个新的最低玩家阈值,然后立即重新评估。 |
配置
配置文件位于 ./config/emptyserverstopper/config.json。
| 键 |
默认值 |
描述 |
enabled |
true |
全局启用或禁用模组。 |
shutdownTimeMinutes |
5 |
一旦超过阈值,等待关机的分钟数。 |
minimumPlayersBeforeShutdown |
1 |
当玩家数量低于此值时,服务器计划关机。 |
timerOnLaunch |
true |
在服务器启动时立即开始计时。 |
playersCanAskShutdownTime |
true |
如果为 true,非 OP 玩家可以使用 /ess time。 |
playersCanAskMinPlayer |
true |
如果为 true,非 OP 玩家可以使用 /ess min_players。 |
通过 set 命令更改的任何值都会自动写回此文件——无需手动编辑或重新加载即可在重启后持久保存。
行为
- 广播消息: 当计划关机时,模组会广播一条消息,在关机触发前 1 分钟发送另一条警告,并在关机取消时发送确认消息。
- 自动取消: 如果有足够多的玩家加入使计数回到阈值以上,计时器会自动取消;如果再次低于阈值,则会自动重新启动。
待办事项
- 移植到最新版本:
26.1.2
-
支持翻译? 不切实际——该模组仅适用于服务端
贡献者
原作者:Martinkrk
当前作者:Mat1212fr
Empty Server Stopper
Not bothered asking the Empty/Sleeping Server Stopper mod author to update his name & URL

A Fabric mod that automatically shuts down the server when it's empty or below a certain player threshold.
Ideal for use with hibernation scripts or the SleepingServerStarter tool (see below).
Usage
Commands
All commands require gamemaster permission level (OP level 2), except time and min_players, which can be opened
to all players via config.
| Command |
Description |
/ess reload |
Reloads the configuration file and re-evaluates the shutdown state. |
/ess time |
Shows the remaining time before shutdown. |
/ess time set <minutes> |
Sets and persists a new shutdown delay, then restarts the timer with it. |
/ess enable |
Enables the mod logic and starts checking player count. |
/ess disable |
Disables the mod logic and stops any running timer. |
/ess restart |
Manually re-evaluates and restarts the shutdown countdown if applicable. |
/ess min_players |
Shows the current minimum player threshold. |
/ess min_players set <n> |
Sets and persists a new minimum player threshold, then re-evaluates immediately. |
Configuration
The config file is located at ./config/emptyserverstopper/config.json.
| Key |
Default |
Description |
enabled |
true |
Globally enable or disable the mod. |
shutdownTimeMinutes |
5 |
Minutes to wait before shutdown once the threshold is crossed. |
minimumPlayersBeforeShutdown |
1 |
Server schedules a shutdown once the player count drops below this value. |
timerOnLaunch |
true |
Start the timer immediately when the server boots. |
playersCanAskShutdownTime |
true |
If true, non-OP players can use /ess time. |
playersCanAskMinPlayer |
true |
If true, non-OP players can use /ess min_players. |
Any value changed via a set command is written back to this file automatically — no manual editing or reload needed
for it to persist across restarts.
Behavior
- Announcements: the mod broadcasts a message when a shutdown is scheduled, another warning 1 minute before it
fires, and a confirmation if the shutdown is canceled.
- Auto-cancel: the timer is automatically canceled if enough players join to bring the count back above the
threshold, and restarted automatically if it drops below again.
TODO
- Port to recent version:
26.1.2
-
Translations support? Not practical — the mod is server-side only
Contributors
Original author: Martinkrk
Current author: Mat1212fr
评论 0
登录后参与评分
还没有评论,来抢沙发吧