- 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.3
- Gets JSON data from API URL:
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.3/builds
- Outputs: JSON structured data with every build of paper 1.19.3
- 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.3/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
Logic below is held and processed in PaperProjectApi.cs Line 53, which gets applied on line 79 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
- hmm, not sure what else to do
- 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
)
- 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.
- Type:
Console Application (dotNET 6)
- IDE:
JetBrains Rider - 2022.3.1
- Version:
v1.5.0.0
- Nuget Packages:
Newtonsoft.Json - 13.0.2
Pastel - 4.1.0
- Checksum SHA-256
- Windows:
1f77cfae88a39c75b1fa0e9e2c3b172fba48ac2521e4951b267f120a66b6e38d
- Linux:
6da4bf58067a2a5b0627bc7479793447d7216d6fe49c0074f9da888c56818919
- Windows: