I contribute to the Pterodactyl Panel and there is something called “nests” which allow a User to automatically select what type of software they wish to download. Be it a source game to Minecraft Forge project. Typically, there is a var called “version” that allow a user to pick which MC and Software version they wish to download.
For Forge, the Install script’s version catch is this:
(curl -sl http://files.minecraftforge.net/maven/net/minecraftforge/forge/ | grep -A1 Latest | grep -o -e ‘.[0-9][0-9]]?.?[0-9]?[0-9] - [0-9][0-9].[0-9][0-9].[0-9]?[0-9].[0-9][0-9][0-9][0-9]’)