ModsJava
Autoupdaterestart
Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.
⬇ Download on Hangar# 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

[Info!] If you find any bugs or want to leave a review, go to this [form](https://forms.gle/iAhUZy3HctXwngRf7)
# 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.'
```
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21, 1.21.1, 1.21.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Hangar — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Autoupdaterestart is a free Minecraft Java mod. Compatible with Minecraft 1.21, 1.21.1, 1.21.10, 1.21.11 and newer. Downloaded 29 times (via Hangar). Download it and open it directly in the game.