PaperMC / Velocity

The modern, next-generation Minecraft server proxy.
https://papermc.io/software/velocity
GNU General Public License v3.0
1.78k stars 626 forks source link

/latest/ Download API #1458

Closed oddbyte closed 2 hours ago

oddbyte commented 2 hours ago

Requested Feature

Hello, I am trying to make a auto-updating Velocity server, but I cant find any way to programmatically get the latest velocity download link

Can you make this a thing / share where such link exists?

Why is this needed?

For people who need to make an auto-downloader for Velocity

Alternative Solutions

just make https://api.papermc.io/v2/projects/velocity/versions/latest/builds/latest/downloads/velocity-latest.jar a symlink to the latest jar

Additional Information

No response

oddbyte commented 2 hours ago

Sorry, i have now been informed that https://versions.velocitypowered.com/download/latest.jar is what i'm looking for.

Camotoy commented 8 minutes ago

That link does not appear to work (and, even if it did, the name implies a very old jar).

If you so desire an auto-update solution, I would recommend doing a Google search for "Paper download API latest version" and finding a solution that works best for you (any field with the Minecraft server version is replaced with the Velocity snapshot version, E.G. 3.4.0-SNAPSHOT).

However, we generally don't want people downloading the latest version without understanding what changes have been implemented, which is one of the reasons why a latest endpoint does not exist.