Server Restart

Quick rating

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

Server Restart

No reviews yet

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

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

About

Project Details

Type
Mod
Latest Version
ServerRestarter-1.12.2-d963e7e.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

Resources

External Links

Source Issues Wiki Discord

About

Description

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

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

~3,000
Downloads
Last Updated
Created
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