PaperMC
1
Check for an available update
Run If an update is available, the output will show the current and latest build numbers and prompt you to run
serv chk to query the PaperMC API and compare the latest build against your current version:serv update.2
Apply the update
3
What happens during the update
The update process runs the following steps automatically:
- Stops the server (if running)
- Backs up the current jar to
backups/jars/paper_VERSION.jar - Downloads the latest build from the PaperMC API
- Restarts the server
Vanilla
1
Check for an available update
2
Apply the update
3
What happens during the update
- Stops the server (if running)
- Backs up the current jar to
backups/jars/old.vanillaserver.jar - Downloads the latest release from Mojang
- Restarts the server
API sources
Theserv script queries the following APIs to determine the latest available version:
Silent update check
Use the-s flag to suppress output when the server is already up to date. This is useful in cron jobs or scripts that should only produce output when action is needed: