Skip to content

Commit

Permalink
Update bedrock-entry.sh to clean up old settings (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendonthiede authored Aug 16, 2023
1 parent 086a116 commit 2888c55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bedrock-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2888c55

Please sign in to comment.