[Bug]: Some modrinth plugins install wrong version
Description
when installing https://modrinth.com/plugin/advanced-portals/versions it's getting the oldest version v0.0.41 from 2 years ago instead of the newest version.
doing it via the command /pp view "axTqSWQA" MODRINTH --byId
history log looks like this:
[25/12/24 11:38:59] simcop2387 INITIATED_INSTALL Advanced Portals from MODRINTH with ID 667c31de64b550bf31f1b309
[25/12/24 11:38:59] simcop2387 INSTALL Advanced Portals from MODRINTH with ID 667c31de64b550bf31f1b309
and plugins.json shows
"platformId": "axTqSWQA",
"name": "Advanced Portals",
"version": "0.0.41",
"platform": "MODRINTH",
"sha256": "11ac44a946db39b269a0afb0e33a3e2c9727a144982427aefa1ed4b92a98c530",
"sha512": "75bb265d56341e7353651b2301e2a0ddc72e717049ceba6b2bf2673a9ec0a0371694e9c2e58b24fbeecb1c53add4ea6e33b746d6df22a1dd09347aa211c523fa",
"installedAt": 1735126739751
}
I'm running papermc 1.21.4 (from their experimental downloads, can find the exact build number if needed)
Minimal Reproduction
install with /pp install "axTqSWQA" MODRINTH --byId
Exception or Error
https://mclo.gs/yh3cALk
Dump
https://mclo.gs/yh3cALk
Once my whole Skyblock sever broke because the plugin updater updated it to the newest version (1.21.7-8) instead of my version (1.21.4).
There could be a warning to "Please back-up your server via a Backup plugin or the Server Panel and than run '/pp update confirm' to continue"
when updating a plugin like packetevents from modrinth, it installed the velocity version!
XD
when updating a plugin like packetevents from modrinth, it installed the velocity version!
@MLGPenguin this should be relatively easy to fix, we store both versions in the db, I assume it just installs the first/latest download url which can be either the proxy or game url.