ModsFinder
MS

MC Server Auto Closer

by ms0503

MC Server Auto Closer shuts down a Minecraft server that has been left unattended for a set period, once the last player has left.

FabricForgeNeoForgeServer-side onlyMIT LicenseOpen source1.20 – 1.20.6

What it does

When the last player leaves a server, the mod starts a countdown equal to a configurable wait time, defaulting to 900000 milliseconds, which is 15 minutes. If no one rejoins before that time runs out, the server stops on its own. The stop only happens inside a configured window, set by enableTimeStart and enableTimeEnd in HH:MM:SS format, with defaults of 02:00:00 and 08:00:00. Outside that window the countdown ends without a shutdown, so a server can be left to close overnight while staying open during the day.

The shutdown is triggered only when every player is gone, so an active session is never interrupted. The wait check continues until the configured time plus the wait time reaches enableTimeEnd, which keeps the close inside the window. Server owners who run a hosted or shared server can use it to avoid leaving a machine running with nobody connected. The mod is server-side only, so players join without installing anything.

The mod is released under the MIT License and is open source; its source code and issue tracker are public. It is published for Fabric, Forge and NeoForge across six release versions, 1.20 – 1.20.6, with 0.2.3 for 1.20.6 as the latest Fabric and NeoForge file and 0.2.3 for 1.20.4 as the latest Forge file, all dated 2026-03-02. The first build appeared on 2026-02-28.

Key features

  1. Automatic shutdown when empty

    The server stops after the last player has been gone for the configured wait time.

  2. Configurable wait time

    The wait time is set in milliseconds, with 900000 (15 minutes) as the default.

  3. Scheduled stop window

    Shutdown can be limited to a time range in HH:MM:SS, defaulting to 02:00:00 through 08:00:00.

  4. Rejoin cancels the countdown

    If a player joins before the wait time expires, the countdown is cancelled and the server keeps running.

Compatibility

Latest build for each game version and loader.

1.20.60.2.3+1.20.6Not available0.2.3+1.20.6
1.20.50.2.3+1.20.5Not available0.2.3+1.20.5
1.20.40.2.3+1.20.40.2.3+1.20.40.2.3+1.20.4
1.20.20.2.3+1.20.20.2.3+1.20.20.2.3+1.20.2
1.20.10.2.3+1.20.10.2.3+1.20.1Not available
1.200.2.3+1.20.10.2.3+1.20.1Not available
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 3

Fabric Language KotlinThis is a mod that enables usage of the Kotlin programming language for Fabric mods.
Required
Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required
Architectury APIAn intermediary api aimed to ease developing multiplatform mods.
Required

Optional 1

Mod MenuAdds a mod menu to view the list of mods you have installed.
Optional

Use cases

Overnight close on hosted servers

A server that should stop while no one is online overnight can use a stop window to close without manual action.

Unattended machines

Owners running a server on a machine they do not watch can avoid leaving it running with an empty world.

Who it’s for: Server owners and hosts who want a server to stop automatically once it has been empty for a while, within a set time window.

Questions

Does Server Auto Closer need to be installed on clients?

No. Server owners install it, and players connect with no copy of their own.

Which dependencies does the mod require?

Architectury API, Fabric Language Kotlin and Fabric API are required on Fabric, and Kotlin for Forge is required on Forge. Mod Menu is optional.

How is the shutdown time window set?

The enableTimeStart and enableTimeEnd settings take times in HH:MM:SS format. Out of the box the window runs from 02:00:00 until 08:00:00.

In the catalog

MC Server Auto Closer is one of 8,016 Management mods on ModsFinder, and one of 5,930 Management mods for Fabric. 11,154 mods support Minecraft 1.20.6.

Similar mods

What the author says

This is a mod that automatically shuts down the Minecraft server if it remains unattended for a set period of time. Configuration file is config/mc_server_auto_closer.json.
ms0503, on the Modrinth page

Official listing

Owner
ms0503
Published
2026-02-28
Updated on Modrinth
2026-03-02
Facts verified
2026-10-15

Tags