DOWNLOAD LATEST RELEASE FROM MODRINTH - https://modrinth.com/plugin/advanced-restart
Minecraft Versions: 1.20.x
About
Advanced Restart is a lightweight and highly-configurable plugin. It aims to assist with hands-free server maintenance.
With the entire plugin being configurable, it will match your every need for restarting servers.
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
Config:
# AdvancedRestart by _txsla and Thorium
# &x color format supported
# set messages:'' 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: '&a- Scheduled Server Restart -'
# Restart if server has been running for a certain amount of time
periodicRestart:
enabled: false
duration: 1440 #minutes
message: '&aServer runtime: %RUNTIME minutes - Restarting'
# 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 #seconds
countdown: true #send the message every second?
message: '&cServer restarting in %S seconds!'
# Sends a message x minutes before the server restarts
minuteWarn:
enabled: false
minutes: 5
countdown: true #send the message every minute?
message: '&aServer restarting in %M minutes!'
# 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: '&aNo players online: Restarting'
# 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: '&4Server TPS dropped below %TPS - Restarting'
lowMemory:
enabled: false
maxMemUsage: 4096 #MB
checks: 5 # how many consecutive failed checks before restart, lower number will restart sooner
message: '&4Server RAM usage exceeded %MEM - Restarting'
# Server shutdown method
# 1 = Bukkit.shutdown()
# 2 = Bukkit.spigot().restart()
# 3 = /stop
# 4 = /restart
shutdownMethod: 1
shutdownMessage: '&4Stopping Server'
#used for debug and development
dev: false