2023-12-11 13:19:25 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# shellcheck source=start-utils
|
|
|
|
. "${SCRIPTS:-/}start-utils"
|
|
|
|
isDebugging && set -x
|
|
|
|
|
2024-02-11 02:04:44 +00:00
|
|
|
if ! SERVER=$(mc-image-helper github download-latest-asset \
|
|
|
|
--output-directory=/data \
|
|
|
|
--name-pattern="kettinglauncher-.+?(?<!-sources)\.jar" \
|
|
|
|
kettingpowered/kettinglauncher
|
|
|
|
); then
|
2024-10-22 21:04:38 +00:00
|
|
|
logError "Failed to download Ketting launcher"
|
2024-02-11 02:04:44 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
2023-12-11 13:19:25 +00:00
|
|
|
|
2024-02-11 02:04:44 +00:00
|
|
|
export SERVER
|
2023-12-11 13:19:25 +00:00
|
|
|
|
2024-02-11 02:04:44 +00:00
|
|
|
resolveVersion
|
2023-12-11 13:19:25 +00:00
|
|
|
|
2024-02-11 02:04:44 +00:00
|
|
|
EXTRA_ARGS+="-minecraftVersion $VERSION"
|
|
|
|
if [[ ${KETTING_VERSION:-} ]]; then
|
|
|
|
EXTRA_ARGS+="-kettingVersion $KETTING_VERSION"
|
2023-12-11 13:19:25 +00:00
|
|
|
fi
|
2024-02-11 02:04:44 +00:00
|
|
|
if [[ ${FORGE_VERSION:-} ]]; then
|
|
|
|
EXTRA_ARGS+="-forgeVersion $FORGE_VERSION"
|
2023-12-11 13:19:25 +00:00
|
|
|
fi
|
2024-02-11 02:04:44 +00:00
|
|
|
export EXTRA_ARGS
|
2023-12-11 13:19:25 +00:00
|
|
|
|
|
|
|
export SERVER
|
|
|
|
export FAMILY=HYBRID
|
|
|
|
|
|
|
|
exec "${SCRIPTS:-/}start-spiget" "$@"
|