mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-04 17:39:37 +00:00
32 lines
690 B
Bash
Executable file
32 lines
690 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# shellcheck source=start-utils
|
|
. "${SCRIPTS:-/}start-utils"
|
|
isDebugging && set -x
|
|
|
|
if ! SERVER=$(mc-image-helper github download-latest-asset \
|
|
--output-directory=/data \
|
|
--name-pattern="kettinglauncher-.+?(?<!-sources)\.jar" \
|
|
kettingpowered/kettinglauncher
|
|
); then
|
|
logError "Failed to download Ketting launcher"
|
|
exit 1
|
|
fi
|
|
|
|
export SERVER
|
|
|
|
resolveVersion
|
|
|
|
EXTRA_ARGS+="-minecraftVersion $VERSION"
|
|
if [[ ${KETTING_VERSION:-} ]]; then
|
|
EXTRA_ARGS+="-kettingVersion $KETTING_VERSION"
|
|
fi
|
|
if [[ ${FORGE_VERSION:-} ]]; then
|
|
EXTRA_ARGS+="-forgeVersion $FORGE_VERSION"
|
|
fi
|
|
export EXTRA_ARGS
|
|
|
|
export SERVER
|
|
export FAMILY=HYBRID
|
|
|
|
exec "${SCRIPTS:-/}start-spiget" "$@"
|