I made a simple PaperUpdater

MintLily

New member
Aug 13, 2022
1
1
3
East Coast, USA
mintlily.lgbt
Honestly, I didn't know where, or even if I can post this. If goes against any of your rules, I am sorry (and it can be removed).

PaperUpdater​

Simple papermc.io Minecraft Server file updater. Gets the latest version, downloads it, and places the file in the root of where this program's executable file is. The detailed process is below.

How it works​

Logic below is held and processed in PaperProjectApi.cs
  • Getting the latest paper project version
    • Gets JSON data from API URL:
      • API URL: https://api.papermc.io/v2/projects/paper
      • Outputs: JSON structured data with every version group and version offered to use
    • It finds the list of strings in versions (last is latest)
    • It verifies that the project_id is paper
    • Stores it in a string that should be 1.19.2
Logic below is held and processed in PaperBuildApi.cs
  • Loading Paper API JSON Data
    • Gets JSON data from API URL:
      • API URL: https://api.papermc.io/v2/projects/paper/versions/1.19.2/builds
      • Outputs: JSON structured data with every build of paper 1.19.2
    • It gets the last entry in the list of builds (last is latest)
    • It then verifies that the channel is default
    • Outputs a completed URL https://api.papermc.io/v2/projects/paper/versions/1.19.2/builds/{buildNumber}/downloads/{buildName}
  • Updating the file
    • If Data is not incorrect
    • It gets the file data as bytes from the completed URL constructed above
    • It will delete a file paper.jar if it exists
    • Then write a new file with the bytes gathered from the completed URL and saves it as paper.jar
Logic below is held and processed in BatchFuncs.cs
  • Creating a batch file
    • Creates a simple batch file to easily run your server
  • Running the server
    • You have the ability to create a basic preset batch file
    • You can also have this application run that batch file directly

Linux​

Recommended actions needed:
Running it:
  • Install screen (above)
  • create and change into a new screen
  • cd into your desired folder (Preferably where your server is installed)
  • wget the latest version ( wget https://github.com/Minty-Labs/PaperUpdater/releases/latest/download/PaperConsoleUpdater )
  • make sure to sudo chmod +x PaperConsoleUpdater
  • Run the program ( ./PaperConsoleUpdater )

Credits and Ownerships​

  • Program Icon (Logo) is directly from papermc's website header logo. All rights go to papermc for the logo. If someone from the papermc team has an issue with me using your logo, please do not hesitate to email Lily C or DM me here (in the forums).

Disclaimer​

I, Lily, am in no way affiliated with PaperMC nor Microsoft/Mojang Studios. Any and all images' rights go to their original owners.

Application Info​

Application Preview​

Just a simple screenshot of how the program will look.
L5SSDuEv15YI.png
 
Last edited:
  • Love
Reactions: Tacklezaza
Jan 28, 2022
46
1
7
8
Germany
crazycloudcraft.de
  • Wow
Reactions: Tacklezaza