跳到正文

MC Server Auto Closer

作者:ms0503

Automatically closes the server when there are no players left

收藏

介绍

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

MC Server Auto Closer

This is a mod that automatically shuts down the Minecraft server if it remains unattended for a set period of time.

Minecraftサーバーが無人状態で一定時間経過した場合に、自動でサーバーを停止させるMODです。

Dependencies / 依存関係

  • Minecraft 1.20.1
  • Architectury API 9.2.14
  • Additional dependencies per mod loader below / 以下のMODローダーごとの追加依存

Fabric

  • Fabric API 0.92.7+1.20.1
  • Fabric Language Kotlin 1.13.9+kotlin.2.3.10

Forge

  • Forge 1.20.1-47.4.16
  • Kotlin for Forge 4.11.0

Configuration / 設定

Configuration file is config/mc_server_auto_closer.json.

設定ファイルはconfig/mc_server_auto_closer.jsonです。

waitTime

The time to wait after becoming unmanned until stopping.\
The unit is milliseconds.\
The initial value is 900000 ms (=15 minutes).

無人状態になってから停止させるまで待機する時間です。\
単位はmsです。\
初期値は900000ms(=15分)です。

enableTimeStart/enableTimeEnd

Specify the time to enable automatic stop.\
Specify in HH:MM:SS format.\
The default values are 02:00:00 and 08:00:00 respectively.

For example, if waitTime is 15 minutes, and the last player leaves 14 minutes before enableTimeEnd, automatic stop
will not activate as it will be outside the enabled time by the time waitTime expires.\
If you wish to initiate the automatic stop wait check until that time, specify that time plus waitTime as
enableTimeEnd.

自動停止を有効化する時間を指定します。\
HH:MM:SSで指定します。\
初期値はそれぞれ02:00:00/08:00:00です。

例えば、waitTimeが15分だとした時、enableTimeEndの14分前に最後のプレイヤーが抜けた場合、waitTime
が満了する頃には有効化時間外であるため自動停止は働きません。\
「その時間まで自動停止待機開始判定をさせたい」場合には、その時間+waitTimeをenableTimeEndに指定してください。

常见问题

MC Server Auto Closer 支持哪些 Minecraft 版本?

MC Server Auto Closer 支持 Minecraft Java 版 1.7.10–1.20.6,共 18 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

MC Server Auto Closer 怎么安装?

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

评论

登录后评论和评分