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
- API URL:
- It finds the list of strings in
versions
(last is latest) - It verifies that the
project_id
ispaper
- Stores it in a string that should be
1.19.2
- Gets JSON data from API URL:
- 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
- API URL:
- It gets the last entry in the list of
builds
(last is latest) - It then verifies that the
channel
isdefault
- Outputs a completed URL
https://api.papermc.io/v2/projects/paper/versions/1.19.2/builds/{buildNumber}/downloads/{buildName}
- Gets JSON data from API URL:
- 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
- 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:- Install .NET 6.0+ Using Microsoft's Guide.
- Install Screen Using this guide.
- 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
- Type:
Console Application (dotNET 6)
- Version:
v1.4.0.0
- Nuget Packages:
Newtonsoft.Json - 13.0.2-beta1
- Checksum SHA-256
- Windows:
fd49eafb9adacb2ad917559eaf2a9fd33c477147c53005eda9ebd520de9a3df6
- Linux:
6fa1ee49f3fd10e75ac37c32b57ad0b8ac76daddba6d66829a492b142f11178d
- Windows:
- Downloads
- GitHub Releases Page: https://github.com/Minty-Labs/PaperUpdater/releases
- Source
- GitHub Page: https://github.com/Minty-Labs/PaperUpdater
Application Preview
Just a simple screenshot of how the program will look.
Last edited: