Back to mods
Server Restart project artwork

CurseForge · Minecraft mod

Server Restart

A simple mod that automatically shuts down servers after a specified time period, with occasional announcements.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Server Restart release matches 1.20 Forge?

Updated 3 years ago
Best match for your filters ServerRestarter-1.20-be914c8.jar
Game version 1.20.1, 1.20
Loader Forge

Server Restart ServerRestarter-1.20-be914c8.jar targets 1.20.1, 1.20 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Server Restart required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Server Restart ServerRestarter-1.20-be914c8.jar need?

ServerRestarter-1.20-be914c8.jar on 1.20 Forge. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Server Restart without breaking your instance.

Built for Server Restart ServerRestarter-1.20-be914c8.jar on 1.20 Forge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use ServerRestarter-1.20-be914c8.jar. It targets 1.20.1, 1.20 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside ServerRestarter-1.20-be914c8.jar. It opens that exact file at the source.

About this project

What does Server Restart add?

Server Restart is a mod that automatically shuts down the server and announces when the restart will happen in specified time intervals. This mod will NOT automatically restart the server, but sample restart scripts will be provided below.

This mod is intended to be used to announce ingame messages without the needing for external scripting to shutdown the server, and instead does it via Minecraft's shutdown method, just as if the /stop command was entered.

This mod can also be configured to send messages to a discord webhook, allowing users on your discord server to be informed of when the server stops, crashes, and is ready to be played on. No more having players logging in while the server is rebooting!

Installation:

Simply drop the mod into the mods folder, boot the server up, and it will generate default config options. Close the server, edit the config options, and you're good to go!

Settings:

Discord settings:

  • avatarUrl is the image url used to set the webhook avatar to. Default is null to use the default webhook avatar.
  • embedColor is the color to use for the webhook embeds. It uses the decimal version of hexademical color codes. A yellow color, #E8D44F is default.
  • embedFooterText is the additional text to use in the footer of the Discord embed.
  • serverName is the server's name to use in the embed.
  • startupMessage is the extra string to send when the server starts up. Mentions are allowed, so feel free to ping a roll! Set to "null" to send no message, just the embed.
  • webhook in discord.cfg or discord-webhook.toml this is the webhook url to use. Set to null to disabled. Keep this file private, because others will be able to use the webhook url if it's leaked!

Server Restart settings:

  • shutdownLength is the amount of time in seconds, before the server will restart.
  • pBypassHiddenChat is if the announcement should bypass clients' preference to ignore server chat.

messages.json:

This file is used to control the announcement messages sent before the server restarts. You can add as many messages as you want, just make sure to the file is proper JSON format. "name" is the human friendly name to use. This isn't used by the mod. "time" is the time, in seconds, to send the message before the server restarts. "message" is the message to send to the server. "announceToDiscord" is if the message should also be announced to discord, in addition to the ingame chat. A default messages.json is provided.

Support Policies:

Fabric versions? Fabric versions are not planned. However, my license allows anyone to port the mod to fabric.

1.11.x and below: No plans to port the mod to versions below 1.12.x.

1.12.x: Only bugfixes will be provided. No new features will be added. 1.12.x will also not report crashes, only regular shutdowns and startups.

1.13.x to 1.15.x: No plans to port the mod to these versions.

1.16.x: Only bugfixes will be provided. No new features will be added.

1.17.x: No plans to port the mod to this version.

1.18.x - 1.19.x: Bugfixes and feature requests will be accepted.

Sample Restart scripts:

https://github.com/FoalFreePress/ServerRestarter/wiki/1.16.x-and-below-scripts

https://github.com/FoalFreePress/ServerRestarter/wiki/1.18.x-and-above-scripts

Project description from CurseForge.

Pick your setup

Server Restart by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

10 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Server Restart versions and loaders

1 of 8 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.