From 238b6e8fd240b288b692dfbdefebc823b506c06f Mon Sep 17 00:00:00 2001 From: Jonathan Stucklen Date: Sun, 15 Mar 2026 20:17:43 -0400 Subject: [PATCH] Fix ALLOW_LIST_USERS parsing. (#613) --- bedrock-entry.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bedrock-entry.sh b/bedrock-entry.sh index 5dec01a..e59be3f 100755 --- a/bedrock-entry.sh +++ b/bedrock-entry.sh @@ -362,9 +362,9 @@ if [[ -n "$ALLOW_LIST_USERS" || -n "$WHITE_LIST_USERS" ]]; then if [[ "$allowListUsers" ]]; then echo "Setting allow list" if [[ "$allowListUsers" != *":"* ]]; then - jq -c -n --arg users "$allowListUsers" '$users | split("[,\n]+") | map(select(length>0) | {"ignoresPlayerLimit":false,"name": .})' > "allowlist.json" + jq -c -n --arg users "$allowListUsers" '$users | split("[,\\n]+"; "") | map(select(length>0) | {"ignoresPlayerLimit":false,"name": .})' > "allowlist.json" else - jq -c -n --arg users "$allowListUsers" '$users | split("[,\n]+") | map(select(length>0) | split(":") | {"ignoresPlayerLimit":false,"name": .[0], "xuid": .[1]})' > "allowlist.json" + jq -c -n --arg users "$allowListUsers" '$users | split("[,\\n]+"; "") | map(select(length>0) | split(":") | {"ignoresPlayerLimit":false,"name": .[0], "xuid": .[1]})' > "allowlist.json" fi # activate server property to enable list usage ALLOW_LIST=true @@ -390,7 +390,7 @@ if [[ -n "$VARIABLES" ]]; then # Note: Values should not contain unescaped commas or colons jq -n --arg vars "$VARIABLES" ' $vars - | split("[,\n]+") + | split("[,\\n]+"; "") | map( select(length>0) | split("=") as $kv |