Advanced Restart

Quick rating

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

Advanced Restart

No reviews yet

A highly-configurable plugin for automatically stopping and restarting servers.

Performance & Optimization
Mod Loaders
Paper
Spigot
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
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
License
All Rights Reserved
Latest Version
1.2.1

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

Modrinth ID

Resources

External Links

About

Description

Advanced Restart

About

Advanced Restart is a lightweight and highly-configurable plugin. It can automatically restart your server with a variety of triggers such as runtime, lag, inactivity and you can even schedule restarts daily or throughout week.

Configurable Messages

Server Restart Messages

Features:

  • Schedule Restarts
  • Periodic Restarts
  • Warn players before restart
  • Restart if TPS drops too low
  • Restart if RAM usage gets to high
  • Multiple shutdown methods
  • Almost everything in the plugin is configurable
  • + more
Config
# AdvancedRestart by _txsla / NBT Archives
# Messages are formatted with MiniMessage
# Format generator: https://webui.advntr.dev/
# Documentation: https://docs.advntr.dev/minimessage/format.html
# set messages to null to disable

# Restarts daily or a certain day/time of the week
# Use the format 'ddd-hh:mm' ; Use 24h time
# Days are MON, TUE, WED, THU, FRI, SAT, SUN or ALL for daily
scheduledRestart:
    enabled: false
    schedule:
      - 'ALL-12:00'
      - 'TUE-02:45'
      - 'Fri-14:45'
    message: '<green>- Scheduled Server Restart -</green>'

# Restart if server has been running for a certain amount of time
periodicRestart:
  enabled: false
  duration: 1440 #minutes
  message: '<green>Server runtime: %RUNTIME minutes - Restarting</green>'

# Sets a warning period before restart
# Only applies to periodicRestart and scheduledRestart
restartWarning:
  # Sends a message x seconds before the server restarts
  secondsWarn:
    enabled: true
    seconds: 5
    countdown: true # send the message every second?
    message: '<red>Server restarting in %S seconds!</red>'
  # Sends a message x minutes before the server restarts
  minuteWarn:
    enabled: false
    minutes: 5
    countdown: true # send the message every minute?
    message: '<green>Server restarting in %M minutes!</green>'

# Restarts server when there are no players online
# Timer cycles from first player join
# Will NOT restart server if no players have joined
inactiveRestart:
  enabled: false
  timer: 300 # seconds
  message: '<green>No players online: Restarting</green>'

# Restart if server gets too laggy
lagRestart:
  lowTPS:
    enabled: false
    minTPS: 10 # TPS
    checks: 3 # how many consecutive failed checks before restart, lower number will restart sooner
    message: '<dark_red>Server TPS dropped below %TPS - Restarting<dark_red>'
  lowMemory:
    enabled: false
    maxMemUsage: 4096 # MB
    checks: 5 # how many consecutive failed checks before restart, lower number will restart sooner
    message: '<dark_red>Server RAM usage exceeded %MEM - Restarting</dark_red>'

# Server shutdown method
# 1 = Bukkit.shutdown()
# 2 = Bukkit.spigot().restart()
# 3 = only run shutdown commands
shutdownMethod: 1
shutdownMessage: '<dark_red>Stopping Server</dark_red>'

# Commands to be executed (as console) at shutdown
# if the list is NOT null, the server shutdown is delayed 2 seconds to allow the commands to fully execute
# Set to null to disable
# Do not prefix '/'
shutdownCommands:
  - 'playsound entity.experience_orb.pickup master @a ~ ~ ~ 1'
  - 'title @a title {"color":"red","shadow_color":-8912896,"text":"Server Restarting"}'
  - 'title @a actionbar {"color":"green","text":"Please rejoin momentarily"}'
  - 'any number of commands are allowed (invalid commands like this one should be ignored'


debug: false
Commands

advancedrestart
  |disable - stops the server from restarting
  |enable - allows the server to restart
  |status - get information on the state of the plugin
  |soft-reload - reload the plugin's configs
  |config
  |  |read - easily read current config options
  |  \reload - reload plugins configs, same as soft-reload
  |debug
  |  |enable - enable debut output to console without changing config
  |  |disable - stop debug output to console without changing config
  |  \query - outputs wether debug output is on or off
  |stop - stops the server
  |  \force - stop even if restarting is currently disabled

Support

If you stumble across any bugs, please create a support ticket.

Screenshots

Gallery

  • Scheduled Server Restart Example
    Scheduled Server Restart Example the messages are fully configurable

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
CurseForge
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