Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for Johndinglesin

AutoUpdate & Restart can automatically updates plugins, and restart your servers.

Report Autoupdaterestart?

AutoUpdateRestart

AutoUpdateRestart is a plugin that automatically updates your plugins. It also restarts your server for you (by restart, I mean turn it off and back on). It works on Bukkit, Paper, and Spigot on 1.21.x - 26.2

Example

[Info!] If you find any bugs or want to leave a review, go to this form

What it does

At startup, it reads the running server's Minecraft version and loader name, then checks installed plugins against Modrinth and Hangar. This is strictly a one-time check, not a repeating poll: its delayed startup trigger is cancelled after use, and the temporary background worker is shut down immediately afterward. When no update is found, the checker clears its results, logs that it is idle, and uses no background task or worker. Players with autoupdater.alert receive an alert in chat when they join.

When automatic updates are enabled, compatible JARs are downloaded into plugins/update/. This is Bukkit's safe update staging directory: the server replaces the original JAR on its next startup. A loaded plugin JAR is never deleted or replaced while it is executing, which prevents corrupting the running server. With automatic updates disabled, use /updater update after /updater check to stage the discovered updates.

The restart scheduler is the only long-lived task, and exists only when restart.enabled is true. It warns each minute during the configured warning window and calls the normal Bukkit shutdown at the end. Your host/start script must be configured to start the server again after shutdown.

Commands and permissions

Command Permission Purpose
/updater check autoupdater.check Fetch a fresh update list.
/updater update autoupdater.update Download the latest remembered updates to plugins/update.
/updater status autoupdater.check Show cached results.
/updater reload autoupdater.reload Reload config and restart the scheduler.

autoupdater.alert controls update notices and defaults to OP. All other permissions also default to OP.

Config.yml

# Set to false to disable every feature (commands remain available for status/reload).
enabled: true

updates:
  enabled: true
  # true: discovered updates are staged automatically in plugins/update.
  # false: only /updater update stages updates found by a previous check.
  automatic: false
  # Checks once shortly after startup. The worker stops as soon as it finishes.
  check-on-startup: true
  startup-delay-seconds: 8
  # Network timeouts for Modrinth/Hangar requests and JAR downloads.
  connect-timeout-seconds: 10
  read-timeout-seconds: 45
  # A plugin must declare the exact server Minecraft version or a compatible 1.21.x version.
  allow-minor-version-fallback: true

restart:
  enabled: false
  interval-hours: 24
  # Messages are sent at 5, 4, 3, 2, and 1 minutes remaining, then on shutdown.
  warning-minutes: 5
  message: '&6[Server] &eRestarting in &c{time}&e.'
  final-message: '&6[Server] &cRestarting now.'

Information

CategoryAdmin Tools
Published onJuly 21, 2026
LicenseUnspecified
Downloads6
Stars1
Watchers1
Addon

Pinned Versions

Members