跳到正文

Force Stop

作者:Lanzr64

Ensure the server process Stop completely.

收藏

介绍

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

Force Stop

Force Stop is a server-side utility mod for Minecraft designed to ensure that the server process fully exits after receiving ServerStoppedEvent.

In some cases, the main server flow has already ended and the event has already been fired, but the Java process still does not actually terminate due to lingering threads, unreleased resources, or other unexpected issues. In this situation, this mod will waits for a specified period of time and then forcibly terminates the process, preventing the server from getting stuck in a “stopped but not exited” state.

Features

  • Listens for Forge’s ServerStoppedEvent
  • Starts a delayed shutdown routine after the event is fired
  • Forcibly terminates the process if the server is still running after the configured delay
  • Suitable for scenarios where the server must be guaranteed to exit after stopping

Configuration

The mod uses the following configuration file:

forcestop.toml

Notes

  • This mod is a fallback solution for server shutdown, not a fix for the root cause
  • If your server has threads that do not shut down properly or resource leaks, you should still investigate the actual source of the problem
  • Forcibly terminating the process may interrupt unfinished background tasks, so the wait time should be configured carefully

常见问题

Force Stop 支持哪些 Minecraft 版本?

Force Stop 支持 Minecraft Java 版 1.20.1–1.21.1,共 7 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Force Stop 怎么安装?

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

评论

登录后评论和评分

Lanzr64 的其他作品

查看全部 →