Skip to content

Commit 2888c55

Browse files
Update bedrock-entry.sh to clean up old settings (#346)
1 parent 086a116 commit 2888c55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bedrock-entry.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ fi
169169
if [[ -v ALLOW_LIST_USERS || -v WHITE_LIST_USERS ]]; then
170170
allowListUsers=${ALLOW_LIST_USERS:-${WHITE_LIST_USERS}}
171171

172+
WHITE_LIST=false
173+
rm -f whitelist.json
172174
if [[ $allowListUsers ]]; then
173175
echo "Setting allow list"
174176
jq -c -n --arg users "$allowListUsers" '$users | split(",") | map({"ignoresPlayerLimit":false,"name": .})' > "allowlist.json"
175177
# activate server property to enable list usage
176178
ALLOW_LIST=true
177-
rm -f whitelist.json
178179
else
179-
rm -rf whitelist.json allowlist.json
180-
WHITE_LIST=false
180+
rm -rf allowlist.json
181181
ALLOW_LIST=false
182182
fi
183183
export WHITE_LIST ALLOW_LIST

0 commit comments

Comments
 (0)