MC Server Auto Closer

Quick rating

Community listing page, reviews here may not be monitored by the author.

MC Server Auto Closer

By ms0503Owner

No reviews yet

Automatically closes the server when there are no players left

Mod Loaders
Minecraft

About

Description

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 が満了する頃には有効化時間外であるため自動停止は働きません。
「その時間まで自動停止待機開始判定をさせたい」場合には、その時間+waitTimeenableTimeEndに指定してください。