Minetrack icon indicating copy to clipboard operation
Minetrack copied to clipboard

Add option to fetch Minecraft protocol versions from remote API

Open hugmanrique opened this issue 5 years ago • 2 comments

I recently released https://github.com/hugmanrique/mc-versions, a project which reports Minecraft version data and is updated daily. It's not a real API per-se since the URL points to a static GitHub asset, but this guarantees the API will be online for long. This PR adds an option to specify the type of version provider (local or mc-versions) and an update interval for fetching versions (both local and remote).

(one of the reasons I made it was to stop needing someone to PR an update for each new MC version 😛)

The data fetching and normalization is already done. The versions take a while to be displayed on the client since the API reports so many protocol numbers, and Minetrack needs to ping servers with these versions. However, I've modified getNextProtocolVersion to skip versions with the same protocol number. The plan is to include a isRelease flag to skip loading (and therefore pinging with) snapshot/pre-release protocol numbers.

hugmanrique avatar Nov 16 '20 21:11 hugmanrique

Would you like me to start reviewing this now or wait until the draft status is removed?

Cryptkeeper avatar Nov 27 '20 22:11 Cryptkeeper

I would wait until I remove the WIP status. As it stands, this is more of a PoC. I'm pretty busy right now, so I don't have much time to work on this 😕

hugmanrique avatar Nov 28 '20 13:11 hugmanrique