From 2888c55a0f0a1c4eb1917d35657d6e2f3419a424 Mon Sep 17 00:00:00 2001 From: Brendon Thiede Date: Tue, 15 Aug 2023 21:21:09 -0400 Subject: [PATCH] Update bedrock-entry.sh to clean up old settings (#346) --- bedrock-entry.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bedrock-entry.sh b/bedrock-entry.sh index 54c1c90..274fb07 100755 --- a/bedrock-entry.sh +++ b/bedrock-entry.sh @@ -169,15 +169,15 @@ fi if [[ -v ALLOW_LIST_USERS || -v WHITE_LIST_USERS ]]; then allowListUsers=${ALLOW_LIST_USERS:-${WHITE_LIST_USERS}} + WHITE_LIST=false + rm -f whitelist.json if [[ $allowListUsers ]]; then echo "Setting allow list" jq -c -n --arg users "$allowListUsers" '$users | split(",") | map({"ignoresPlayerLimit":false,"name": .})' > "allowlist.json" # activate server property to enable list usage ALLOW_LIST=true - rm -f whitelist.json else - rm -rf whitelist.json allowlist.json - WHITE_LIST=false + rm -rf allowlist.json ALLOW_LIST=false fi export WHITE_LIST ALLOW_LIST