跳到正文

Sleeping Server Stopper

作者:Mat1212

A Fabric mod that automatically shuts down the server when it's empty or below a certain player threshold.

收藏

介绍

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

Empty Server Stopper

Not bothered asking the Empty/Sleeping Server Stopper mod author to update his name & URL

empty-server-stopper 1

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

  • [X] Port to recent version: 26.1.2
  • [ ] Translations support? Not practical — the mod is server-side only

Contributors

Original author: Martinkrk

Current author: Mat1212fr

常见问题

Sleeping Server Stopper 支持哪些 Minecraft 版本?

Sleeping Server Stopper 支持 Minecraft Java 版 26.1.2–26.3,共 3 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Sleeping Server Stopper 怎么安装?

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

评论

登录后评论和评分

Mat1212 的其他作品

查看全部 →