From 6810542f0d36247f10b610de44cc12eaf1fb884e Mon Sep 17 00:00:00 2001 From: Kevin Brewer <[kevin@splicecloud.com]> Date: Tue, 7 Jan 2025 17:55:14 -0500 Subject: [PATCH] adding additional settings --- launch.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/launch.sh b/launch.sh index 4a6ecaf..ae10526 100644 --- a/launch.sh +++ b/launch.sh @@ -40,6 +40,15 @@ fi if [[ -n "$ENABLE_WHITELIST" ]]; then sed -i "s/white-list=.*/white-list=$ENABLE_WHITELIST/" /data/server.properties fi +if [[ -n "$ALLOW_FLIGHT" ]]; then + sed -i "s/allow-flight=.*/allow-flight=$ALLOW_FLIGHT/" /data/server.properties +fi +if [[ -n "$MAX_PLAYERS" ]]; then + sed -i "s/max-players=.*/max-players=$MAX_PLAYERS/" /data/server.properties +fi +if [[ -n "$ONLINE_MODE" ]]; then + sed -i "s/online-mode=.*/online-mode=$ONLINE_MODE/" /data/server.properties +fi [[ ! -f whitelist.json ]] && echo "[]" > whitelist.json IFS=',' read -ra USERS <<< "$WHITELIST_USERS" for raw_username in "${USERS[@]}"; do