PaperMC
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.Apply the update
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
API sources
Theserv script queries the following APIs to determine the latest available version:
| Server type | API endpoint |
|---|---|
| PaperMC | https://fill.papermc.io/v3/projects/paper |
| Vanilla | https://piston-meta.mojang.com/mc/game/version_manifest_v2.json |
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: