Forge Auto Shutdown

Quick rating

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

Forge Auto Shutdown

No reviews yet

A Fork of ForgeAutoShutdown for Minecraft 1.12.2

No Theme
No Genre
Server Utility
Mod Fork/Port
Mod Loaders
Forge
Minecraft

Community voices

Reviews

List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Show per page
10
25
50
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Where It Runs
Client and Server

Must be installed on both the client and the server.

About

Project Details

Type
Mod
License
MIT License
Latest Version
ForgeAutoShutdown-1.12.2-1.1.0.jar

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Now also available on on Modrinth!


A 1.12.2 Fork of "ForgeAutoShutdown", released under the MIT license here.

The original author elaborates on explicit permissions on that page (as seen in this image)


This mod must be installed on both client and server sides. It doesn't add any commands to SP worlds, but is necessary for localized messages. 

It can:

  • Schedule the server to automatically shut down at a specific time of day, or after X hours and minutes of uptime. This allows the server to be automatically restarted by a shell script, Windows batch file or service.
  • Allow players to vote for a manual shutdown, so a lagged out server does not require admin intervention
  • Shutdown or kill a server that is hung/stalled or laggy (experimental)

Requirements

  • Minecraft Forge server 1.12.2, running forge 14.23.5.2859 
  • A wrapper script to restart the server after shutdown (optional, but recommended)

Features

Any of these features may be disabled in the config

Scheduled shutdown

FAS will log a message at the INFO level on server startup, with a date and time of the next scheduled shutdown. For example:

[10:50:09] [Server thread/INFO] [forgeautoshutdown]: Next automatic shutdown: 08:30:00 13-June-2019

If this message is missing, the mod has not been correctly installed or the schedule is disabled in config. If the mod is installed on a Minecraft client, it will log an ERROR to the console and not perform any function. It will not crash or disable the client.

Mode

By default, the shutdown will be scheduled to happen at a specific time of day. This is the time local to the server and will always happen within the next 24 hours after server startup. This means that if the server starts and has missed the shutdown time even by a few minutes, it will schedule for the next day. Alternatively, setting "Uptime" to "true" means the server can shutdown after a specific amount of hours or minutes instead. This can allow the server to restart multiple times a day, or after a few days, etc.

Warnings


By default a scheduled shutdown will give a warning to all players, each minute for five minutes, after the scheduled time. This can be disabled by setting "Warnings" to "false". This means the server will shutdown, without warning, by the scheduled time.

Delay

If desired, the shutdown can be delayed by a configurable amount if players are still on the server. To enable this, set "Delay" to true and adjust "DelayBy" to the amount of minutes to delay. The shutdown will be repeatedly delayed until the server is empty. When checking if the
server for players, fake players (e.g. BuildCraft's quarry) are excluded. Note that shutdown warnings are ineffective with delays, and a pending shutdown will be cancelled if a player comes online during the countdown.

Voting

If enabled, players may vote a manual shutdown. To do so, a player must execute "/shutdown". Then, all players (including the vote initiator) must vote using "/shutdown yes" or "/shutdown no".

If the amount of "no" votes reach a maximum threshold, the vote fails. If a vote is cast and too many players have disconnected in the meantime, the vote fails. If a vote fails, another one will not be able to start until a configured amount of minutes has passed.

If the vote succeeds, the server will instantly shutdown without warning. If an appropriate means of automatic restart is in place, it should be  expected that the server will go up within a few minutes.

Watchdog

If enabled, a watchdog thread can periodically watch the server for unresponsiveness. By default, it checks every 10 seconds:

  • Whether the server is hanging (or "stalling") on a tick
  • Whether the TPS stays below a certain amount for a certain length of time

If either problem is detected, the watchdog will try a soft kill (or a hard kill, if configured). This makes the server try to save all its data before shutting down. If a soft kill takes longer than ten seconds, the watchdog will do a hard kill.

A 1.12.2 Fork of "ForgeAutoShutdown" for 1.10.2 (Repository)

This mod must be installed on both client and server sides. It doesn't add any commands to SP worlds, but is necessary for localized messages.

ForgeAutoShutdown is a mod that can:

  • Schedule the server to automatically shut down at a specific time of day, or after X hours and minutes of uptime. This allows the server to be automatically restarted by a shell script, Windows batch file or service.
  • Allow players to vote for a manual shutdown, so a lagged out server does not require admin intervention
  • Shutdown or kill a server that is hung (stalled) or laggy

Requirements

  • Minecraft Forge server 1.12.2, running forge 14.23.5.2859
  • A wrapper script that restarts the server after shutdown (optional, but highly recommended).

Features

Any of these features may be disabled in the config

Scheduled shutdown

ForgeAutoShutdown will log a message at the INFO level on server startup, with a date and time of the next scheduled shutdown. For example:

[10:50:09] [Server thread/INFO] [ForgeAutoShutdown]: Next automatic shutdown: 08:30:00 09-June-2019

If this message is missing, the mod has not been correctly installed or the schedule is disabled in config. If the mod is installed on a Minecraft client, it will log an ERROR to the console and not perform any function. It will not crash or disable the client.

Mode

By default, the shutdown will be scheduled to happen at a specific time of day. This is the time local to the server and will always happen within the next 24 hours after server startup. This means that if the server starts and has missed the shutdown time even by a few minutes, it will schedule for the next day.

Alternatively, setting Uptime to true means the server can shutdown after a specific amount of hours or minutes instead. This can allow the server to restart multiple times a day, or after a few days, etc.

Warnings

By default a scheduled shutdown will give a warning to all players, each minute for five minutes, after the scheduled time. This can be disabled by setting Warnings to false. This means the server will shutdown, without warning, by the scheduled time.

Delay

If desired, the shutdown can be delayed by a configurable amount if players are still on the server. To enable this, set Delay to true and adjust DelayBy to the amount of minutes to delay.

The shutdown will be repeatedly delayed until the server is empty. When checking if the server for players, fake players are excluded. Note that shutdown warnings are ineffective with delays, and a pending shutdown will be cancelled if a player comes online during the countdown.

Voting

If enabled, players may vote a manual shutdown. To do so, a player must execute /shutdown. Then, all players (including the vote initiator) must vote using /shutdown yes or /shutdown no.

If the amount of no votes reach a maximum threshold, the vote fails. If a vote is cast and too many players have disconnected in the meantime, the vote fails. If a vote fails, another one will not be able to start until a configured amount of minutes has passed.

If the vote succeeds, the server will instantly shutdown without warning. If an appropriate means of automatic restart is in place, it should be expected that the server will go up within a few minutes.

Watchdog (Experimental)

If enabled, a watchdog thread can periodically watch the server for unresponsiveness. By default, it checks every 10 seconds:

  • Whether the server is hanging (or "stalling") on a tick
  • Whether the TPS stays below a certain amount for a certain length of time

If either problem is detected, the watchdog will try a soft kill (or a hard kill, if configured). This makes the server try to save all its data before shutting down. If a soft kill takes longer than ten seconds, the watchdog will do a hard kill.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~33,000
Total Downloads
CurseForge
~10,000
Modrinth
~22,000
Last Updated
CurseForge
Modrinth
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works