mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-12 21:32:28 +00:00
32 lines
692 B
Bash
Executable file
32 lines
692 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
|
|
log "ERROR: 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" "$@"
|