This Node.JS program checks if your papermc server's jar file is up to date, within the relevant version group (1.15, 1.16, 1.17, etc), and if downloads it's replacement. It will exclude any build released within the last 24 hours from it's results.
The name of the file it ends up with will be it's project name with the jar extension all in lower case so your startup script might need to be adjusted to account for that.
i.e. paper.jar
, waterfall.jar
, etc
Follow the instructions below to build the project yourself or just download the latest main.js
from the releases panel and jump down to the Run section.
- Download this program onto the computer you wish to use it on.
- Open up a terminal and direct yourself to the downloaded folder's contents using
cd
. - Type
npm run build
to install the necessary dependencies and compile the program.
- Type
node main.js -<project type> <path>
to execute the program.- Example:
node main.js -paper /home/ubuntu/server/
- Example:
- Replace with the type of papermc server you're running.
- Replace with the path to your server folder.
- You can do multiple
-<project type> <path>
afternode main.js
if there are multiple servers you'd wish to have checked and updated.- Example:
node main.js -paper /home/ubuntu/subServer/ -waterfall /home/ubuntu/hostServer/
- Example:
If you'd like this program to check on a regular basis for updates then you could set up a crontab to have it run once a day or once a week.