Compatibility
Minecraft: Java Edition
1.21.x
1.20.x
1.19.x
Platforms
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Licensed ARR
Published 8 months ago
Updated 8 months ago
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
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 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
Support
If you stumble across any bugs, please create a support ticket.