From 0f466e214653ff71e3506f82a0cf39e3e53bd504 Mon Sep 17 00:00:00 2001 From: 55chevypickup Date: Mon, 11 May 2015 15:45:23 -0500 Subject: [PATCH] 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 --- minecraft-server/start-minecraft.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/minecraft-server/start-minecraft.sh b/minecraft-server/start-minecraft.sh index d4b1648a..0b0cc95d 100755 --- a/minecraft-server/start-minecraft.sh +++ b/minecraft-server/start-minecraft.sh @@ -53,7 +53,16 @@ case $TYPE in ;; 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" FORGE_INSTALLER="forge-$normForgeVersion-installer.jar"