mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
33 lines
692 B
Bash
Executable File
33 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" "$@"
|