Sleeping Server Stopper
懒得把它改名为 Empty Server Stopper 了。
当服务器在设定的分钟数内没有任何玩家在线时,它会关闭专用服务器,避免服务器空转。
这是 Sleeping Server Stopper Spigot 插件 的移植版,旨在与 vincss 开发的 SleepingServerStarter 配合使用。Starter 会在有人尝试加入时唤醒服务器,而这个模组会在所有玩家离开后将服务器重新休眠。
- 仅服务端。 玩家无需安装。
- 在单人游戏或局域网世界中无效。
- 支持 Fabric、NeoForge 和 Forge,涵盖版本从 1.7.10 到 26.x。
工作原理
- 服务器启动时(可选)或最后一名玩家离开后,倒计时开始。
- 如果在倒计时结束前有玩家加入,则取消倒计时。
- 如果倒计时结束时服务器仍然为空,则安全关闭服务器。
服务器日志会显示每个步骤:
[SSS] Server empty - Server will shutdown in 2 minute(s)!
[SSS] Player joined - Server shutdown cancelled.
[SSS] Server empty - Server shutting down.
选择你的文件
每个文件覆盖其范围内的所有 Minecraft 版本。

Fabric
需要 Fabric API。
| Minecraft versions |
File |
| 26.1 – 26.x |
sleepingserverstoppermod-fabric-4.1.0+26.x.jar |
| 1.16.4 – 1.21.11 |
sleepingserverstoppermod-fabric-4.1.0+1.16.4-1.21.11.jar |
NeoForge
| Minecraft versions |
File |
| 1.20.6 – 26.x |
sleepingserverstoppermod-neoforge-4.1.0+1.20.6-26.x.jar |
| 1.20.2 – 1.20.4 |
sleepingserverstoppermod-neoforge-4.1.0+1.20.2-1.20.4.jar |
| 1.20.1 |
使用 Forge 1.18.2-1.20.1 的文件(NeoForge 1.20.1 是 Forge 的一个分支) |
Forge
| Minecraft versions |
File |
| 1.21.6 – 1.21.11 |
sleepingserverstoppermod-forge-4.1.0+1.21.6-1.21.11.jar |
| 1.20.6 – 1.21.5 |
sleepingserverstoppermod-forge-4.1.0+1.20.6-1.21.5.jar |
| 1.20.2 – 1.20.4 |
sleepingserverstoppermod-forge-4.1.0+1.20.2-1.20.4.jar |
| 1.18.2 – 1.20.1 |
sleepingserverstoppermod-forge-4.1.0+1.18.2-1.20.1.jar |
| 1.17.1 |
sleepingserverstoppermod-forge-4.1.0+1.17.1.jar |
| 1.16.5 |
sleepingserverstoppermod-forge-4.1.0+1.16.5.jar |
| 1.12.2 |
sleepingserverstoppermod-forge-4.1.0+1.12.2.jar |
| 1.7.10 |
sleepingserverstoppermod-forge-4.1.0+1.7.10.jar |
在每次发布之前,都会在实际的专用服务器上对其覆盖的所有版本进行测试。机器人会加入并离开,测试会检查倒计时是否被取消、重启以及是否关闭了服务器。
想要一个未列出的版本?提交 Issue。
配置
首次启动时,模组会创建 config/sleepingserverstoppermod.properties:
# How many minutes the server must be empty before it shuts down. (Minimum is 1 minute!)
shutdownTimeInMinutes=2
# Should the shutdown countdown start as soon as the server launches?
shutdownOnLaunch=true
从 3.x 升级: 旧的 sleepingserverstoppermod-common.toml / .cfg 文件不再被读取。请将您的值复制到新文件中。
🤝 贡献者
作者:MadaHaz
最初基于一个归档的移植版 EmptyServerStopper,由 GHYAKIMA 开发。
源代码、Issue 和完整更新日志:GitHub
📄 版本
- v4.1.0
- 每个文件现在覆盖一系列 Minecraft 版本,因此 12 个文件覆盖了以前需要每个版本一个文件的内容。
- 新增:Fabric 1.17.x,以及 Fabric、NeoForge 和 Forge 上的所有 1.20.x 和 1.21.x 版本。
- 新增:Forge 1.17.1、1.20.2 – 1.20.4 和 1.20.6 – 1.21.11。NeoForge 1.20.1 – 1.20.4 和 1.20.6。
- v4.0.0
- 来自单一代码库的 Fabric、NeoForge 和 Forge,涵盖版本从 1.7.10 到 26.x。
- 新增:每个加载器共享的新配置文件:
config/sleepingserverstoppermod.properties。
- 修复:关闭操作在服务器线程上运行。反复加入和离开不再导致计时器堆叠。最后一名玩家离开会在每个版本上启动倒计时。在 1.21.2+ 服务器暂停期间,倒计时继续工作。没有模组的客户端可以加入 1.7.10 和
1.12.2 服务器。
- v3.0.0:
shutdownOnLaunch 配置值现在有效。
- v2.0.0:用于关闭时间和启动时关闭的配置文件的默认值分别为 2 分钟和 true(最小值为 1 分钟)。
- v1.0.0:固定的 2 分钟计时器,并在启动时关闭服务器。
Sleeping Server Stopper
Not bothered renaming it to Empty Server Stopper.
Shuts your dedicated server down once nobody has been on it for a set number of minutes, so it isn't left running empty.
It's a port of the Sleeping Server Stopper Spigot plugin, meant to be used with SleepingServerStarter by vincss. The Starter wakes the server when
someone tries to join, and this mod puts it back to sleep when everyone has left.
- Server-side only. Players don't need it installed.
- Does nothing in singleplayer or on LAN worlds.
- Runs on Fabric, NeoForge and Forge, from 1.7.10 up to 26.x.
How it works
- When the server starts (optional) or the last player leaves, a countdown begins.
- If a player joins before the countdown ends, it is cancelled.
- If the server is still empty when the countdown ends, it shuts down cleanly.
The server log shows each step:
[SSS] Server empty - Server will shutdown in 2 minute(s)!
[SSS] Player joined - Server shutdown cancelled.
[SSS] Server empty - Server shutting down.
Choose your file
Each file covers every Minecraft version in its range.

Fabric
Needs Fabric API.
| Minecraft versions |
File |
| 26.1 – 26.x |
sleepingserverstoppermod-fabric-4.1.0+26.x.jar |
| 1.16.4 – 1.21.11 |
sleepingserverstoppermod-fabric-4.1.0+1.16.4-1.21.11.jar |
NeoForge
| Minecraft versions |
File |
| 1.20.6 – 26.x |
sleepingserverstoppermod-neoforge-4.1.0+1.20.6-26.x.jar |
| 1.20.2 – 1.20.4 |
sleepingserverstoppermod-neoforge-4.1.0+1.20.2-1.20.4.jar |
| 1.20.1 |
Use the Forge 1.18.2-1.20.1 file (NeoForge 1.20.1 is a Forge fork) |
Forge
| Minecraft versions |
File |
| 1.21.6 – 1.21.11 |
sleepingserverstoppermod-forge-4.1.0+1.21.6-1.21.11.jar |
| 1.20.6 – 1.21.5 |
sleepingserverstoppermod-forge-4.1.0+1.20.6-1.21.5.jar |
| 1.20.2 – 1.20.4 |
sleepingserverstoppermod-forge-4.1.0+1.20.2-1.20.4.jar |
| 1.18.2 – 1.20.1 |
sleepingserverstoppermod-forge-4.1.0+1.18.2-1.20.1.jar |
| 1.17.1 |
sleepingserverstoppermod-forge-4.1.0+1.17.1.jar |
| 1.16.5 |
sleepingserverstoppermod-forge-4.1.0+1.16.5.jar |
| 1.12.2 |
sleepingserverstoppermod-forge-4.1.0+1.12.2.jar |
| 1.7.10 |
sleepingserverstoppermod-forge-4.1.0+1.7.10.jar |
Before each release, every file is tested on a real dedicated server across the versions it covers. A bot joins and leaves, and the test checks that the countdown cancels, restarts and shuts the server down.
Want a version that isn't listed? Open an issue.
Config
On first launch the mod creates config/sleepingserverstoppermod.properties:
# How many minutes the server must be empty before it shuts down. (Minimum is 1 minute!)
shutdownTimeInMinutes=2
# Should the shutdown countdown start as soon as the server launches?
shutdownOnLaunch=true
Upgrading from 3.x: the old sleepingserverstoppermod-common.toml / .cfg files are no longer read. Copy your values into the new file.
🤝 Contributors
Author: MadaHaz
Originally based on an archived port, EmptyServerStopper by GHYAKIMA.
Source code, issues and full changelog: GitHub
📄 Versions
- v4.1.0
- Each file now covers a range of Minecraft versions, so 12 files cover what used to need one file per version.
- New: Fabric 1.17.x, and every 1.20.x and 1.21.x release on Fabric, NeoForge and Forge.
- New: Forge 1.17.1, 1.20.2 – 1.20.4 and 1.20.6 – 1.21.11. NeoForge 1.20.1 – 1.20.4 and 1.20.6.
- v4.0.0
- Fabric, NeoForge and Forge from one codebase, for 1.7.10 up to 26.x.
- New config file shared by every loader:
config/sleepingserverstoppermod.properties.
- Fixes: the shutdown runs on the server thread. Joining and leaving repeatedly no longer stacks up timers. The last player leaving starts the countdown on every version. The countdown keeps working while a 1.21.2+ server is paused. Clients without the mod can join 1.7.10 and
1.12.2 servers.
- v3.0.0: the
shutdownOnLaunch config value now works.
- v2.0.0: config file for the shutdown time (minimum 1 minute) and shutdown on launch, defaulting to 2 minutes and true.
- v1.0.0: a fixed 2 minute timer, and the server shuts down on startup.
评论 0
登录后参与评分
还没有评论,来抢沙发吧