Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.
/ PaperUpdate Public archive

This program was specifically made to auto update PaperMC servers to the latest build minus 24 hours.

License

Notifications You must be signed in to change notification settings

BlackAsLight/PaperUpdate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaperUpdate

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

Instructions

Setup

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.

  1. Download this program onto the computer you wish to use it on.
  2. Open up a terminal and direct yourself to the downloaded folder's contents using cd.
  3. Type npm run build to install the necessary dependencies and compile the program.

Run

  • Type node main.js -<project type> <path> to execute the program.
    • Example: node main.js -paper /home/ubuntu/server/
  • 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> after node 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/

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.

About

This program was specifically made to auto update PaperMC servers to the latest build minus 24 hours.

Topics

Resources

License

Stars

Watchers

Forks