mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-21 13:18:31 +00:00
Added support for Tunity server type
This commit is contained in:
@@ -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
|
location, but still have multiple worlds with different server requirements
|
||||||
in either persistent volumes or a downloadable archive.
|
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
|
## Running a Magma server
|
||||||
|
|
||||||
A [Magma](https://magmafoundation.org/) server, which is a combination of Forge and PaperMC, can be used with
|
A [Magma](https://magmafoundation.org/) server, which is a combination of Forge and PaperMC, can be used with
|
||||||
|
|||||||
@@ -78,6 +78,10 @@ case "${TYPE^^}" in
|
|||||||
exec /start-deployPaper "$@"
|
exec /start-deployPaper "$@"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
TUNITY)
|
||||||
|
exec /start-deployTunity "$@"
|
||||||
|
;;
|
||||||
|
|
||||||
FORGE)
|
FORGE)
|
||||||
exec /start-deployForge "$@"
|
exec /start-deployForge "$@"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Executable
+27
@@ -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 $@
|
||||||
Reference in New Issue
Block a user