diff --git a/README.md b/README.md index b15d4e02..378df37a 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ By default, the container will download the latest version of the "vanilla" [Min * [Enabling Autopause](#enabling-autopause) * [Running on RaspberryPi](#running-on-raspberrypi) - + @@ -452,15 +452,13 @@ An [Airplane](https://github.com/TECHNOVE/Airplane) server, which is a fork of T > **NOTE** only `VERSION=LATEST` is supported -> **NOTE** only Java 8 and 11 are supported - Extra variables: - `FORCE_REDOWNLOAD=false` : set to true to force the located server jar to be re-downloaded - `USE_FLARE_FLAGS=false` : set to true to add appropriate flags for the [Flare](https://blog.airplane.gg/flare) profiler ### Running a Purpur server -A [Purpur](https://purpur.pl3x.net/) server, which is "a fork of Paper, Tuinity, Airplane with the goal of providing new and interesting configuration options". +A [Purpur](https://purpur.pl3x.net/) server, which is "a drop-in replacement for Paper servers designed for configurability, new fun and exciting gameplay features, and high performance built on top of Tuinity.". -e TYPE=PURPUR @@ -469,7 +467,6 @@ A [Purpur](https://purpur.pl3x.net/) server, which is "a fork of Paper, Tuinity, Extra variables: - `PURPUR_BUILD=LATEST` : set a specific Purpur build to use - `FORCE_REDOWNLOAD=false` : set to true to force the located server jar to be re-downloaded -- `USE_FLARE_FLAGS=false` : set to true to add appropriate flags for the [Flare](https://blog.airplane.gg/flare) profiler ### Running a Yatopia server diff --git a/start-deployAirplane b/start-deployAirplane index 85b398f8..0ce0b35d 100644 --- a/start-deployAirplane +++ b/start-deployAirplane @@ -7,9 +7,10 @@ isDebugging && set -x JAVA_VER=$(java -version 2>&1 | head -1 | cut -d'"' -f2 | sed '/^1\./s///' | cut -d'.' -f1) -if [ "${JAVA_VER}" != "8" ] && [ "${JAVA_VER}" != "11" ]; then - log "ERROR: Airplane server type only supports Java versions 8 and 11" - exit 1 +if [ "${JAVA_VER}" = "8" ]; then + JDK=8 +else + JDK=11 fi if [ "${VERSION}" != "LATEST" ]; then @@ -17,10 +18,10 @@ if [ "${VERSION}" != "LATEST" ]; then exit 1 fi -export SERVER=airplane-${VANILLA_VERSION}-jdk${JAVA_VER}.jar +export SERVER=airplane-${VANILLA_VERSION}-jdk${JDK}.jar if [ ! -f "$SERVER" ] || isTrue "$FORCE_REDOWNLOAD"; then - downloadUrl="https://dl.airplane.gg/latest/Airplane-JDK${JAVA_VER}/launcher-airplane.jar" + downloadUrl="https://dl.airplane.gg/latest/Airplane-JDK${JDK}/launcher-airplane.jar" log "Downloading Airplane from $downloadUrl ..." curl -fsSL -o "$SERVER" "$downloadUrl" if [ ! -f "$SERVER" ]; then diff --git a/start-deployFTBA b/start-deployFTBA index 38fae975..fa4f4b00 100644 --- a/start-deployFTBA +++ b/start-deployFTBA @@ -52,12 +52,14 @@ fi isDebugging && cat version.json forgeVersion=$(jq -r '.targets|unique[] | select(.name == "forge") | .version' version.json) +fabricVersion=$(jq -r '.targets|unique[] | select(.name == "fabric") | .version' version.json) mcVersion=$(jq -r '.targets|unique[] | select(.name == "minecraft") | .version' version.json) variants=( forge-${mcVersion}-${forgeVersion}.jar forge-${mcVersion}-${forgeVersion}-universal.jar forge-${mcVersion}-${forgeVersion}-${mcVersion}-universal.jar + fabric-${mcVersion}-${fabricVersion}-server-launch.jar ) for f in ${variants[@]}; do if [ -f $f ]; then @@ -66,7 +68,7 @@ for f in ${variants[@]}; do fi done if ! [ -v SERVER ]; then - log "ERROR unable to locate the installed forge server jar" + log "ERROR unable to locate the installed FTB server jar" ls *.jar exit 2 fi diff --git a/start-deployYatopia b/start-deployYatopia index 0cbc28ce..39f08cf3 100644 --- a/start-deployYatopia +++ b/start-deployYatopia @@ -6,7 +6,7 @@ IFS=$'\n\t' isDebugging && set -x : ${VANILLA_VERSION:?} -: ${RELEASE:=stable} +: ${RELEASE:=latest} : ${FORCE_REDOWNLOAD:=false} requireEnum RELEASE stable latest