Added support for Tunity server type

This commit is contained in:
Geoff Bourne
2020-04-24 18:56:15 -05:00
parent 664f3d7eaa
commit fbdee6a7a7
3 changed files with 39 additions and 0 deletions

View File

@@ -447,6 +447,14 @@ This works well if you want to have a common set of plugins in a separate
location, but still have multiple worlds with different server requirements
in either persistent volumes or a downloadable archive.
## Running a Tunity server
A [Tunity](https://github.com/Spottedleaf/Tuinity) server, which is a fork of Paper aimed at improving server performance at high playercounts.
-e TYPE=TUNITY
> **NOTE** only `VERSION=LATEST` is supported
## Running a Magma server
A [Magma](https://magmafoundation.org/) server, which is a combination of Forge and PaperMC, can be used with

View File

@@ -78,6 +78,10 @@ case "${TYPE^^}" in
exec /start-deployPaper "$@"
;;
TUNITY)
exec /start-deployTunity "$@"
;;
FORGE)
exec /start-deployForge "$@"
;;

27
start-deployTunity Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
. /start-utils
if [ "${VERSION}" != "LATEST" ]; then
log "ERROR: Tunity server type only supports VERSION=LATEST"
exit 1
fi
: ${TUNITY_BUILD:=lastSuccessfulBuild}
export SERVER=tunity-${VANILLA_VERSION}-${TUNITY_BUILD}.jar
if [ ! -f "$SERVER" ] || [ -n "$FORCE_REDOWNLOAD" ]; then
downloadUrl="https://ci.codemc.io/job/Spottedleaf/job/Tuinity/${TUNITY_BUILD}/artifact/tuinity-paperclip.jar"
log "Downloading Tunity (build $TUNITY_BUILD) from $downloadUrl ..."
curl -fsSL -o "$SERVER" "$downloadUrl"
if [ ! -f "$SERVER" ]; then
log "ERROR: failed to download from $downloadUrl (status=$?)"
exit 3
fi
fi
# Normalize on Spigot for operations below
export TYPE=SPIGOT
# Continue to Final Setup
exec /start-finalSetup01World $@