Skip to content

Conversation

@typegaro
Copy link

Summary of changes:

  • Updated the PaperMC API URL to ensure compatibility with the current API endpoint.
  • Fixed the wget command to download the server jar from the correct URL.

Reasoning:

  • The previous URL (https://papermc.io/api/v2/projects/paper) was incorrect and needed to be updated to the correct endpoint (https://api.papermc.io/v2/projects/paper).
  • The wget command was updated to ensure the correct file is downloaded without specifying the output jar name, as it is handled correctly by the API.

This fix ensures that the server jar is downloaded correctly for the specified Minecraft version.

Testing:

  • I tested the changes by running the script and verifying that the correct server jar is downloaded from the updated API.

Copy link

@Project516 Project516 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (https://docs.papermc.io/misc/downloads-api/) is the papermc docs on the download api and there is a new way to download files.https://fill.papermc.io/v3/projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants