mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-20 17:58:13 +00:00
Added the ability to select forge version
Added the ability to select forge version by adding -e FORGEVERSION=10.13.3.1403-1.7.10 or -e FORGEVERSION=RECOMMENDED
This commit is contained in:
1 parent
5c947fd4ab
commit
0f466e2146
1 file changed
+10
-1
@@ -53,7 +53,16 @@ case $TYPE in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
FORGE_VERSION=`wget -O - http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json | jsawk -n "out(this.promos['$norm-recommended'])"`
|
echo "Checking Forge version information."
|
||||||
|
case $FORGEVERSION in
|
||||||
|
RECOMMENDED)
|
||||||
|
FORGE_VERSION=`wget -O - http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json | jsawk -n "out(this.promos['$norm-recommended'])"`
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
FORGE_VERSION=$FORGEVERSION
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
normForgeVersion="$norm-$FORGE_VERSION"
|
normForgeVersion="$norm-$FORGE_VERSION"
|
||||||
FORGE_INSTALLER="forge-$normForgeVersion-installer.jar"
|
FORGE_INSTALLER="forge-$normForgeVersion-installer.jar"
|
||||||
|
|||||||
Reference in new issue
Block a user