Skip to content

Commit b626ba5

Browse files
authored
Ensure whitelist.json not present when using allow list (#341)
1 parent 8756c97 commit b626ba5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bedrock-entry.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,10 @@ if [[ -v ALLOW_LIST_USERS || -v WHITE_LIST_USERS ]]; then
171171

172172
if [[ $allowListUsers ]]; then
173173
echo "Setting allow list"
174-
f=allowlist.json
175-
rm -rf "$f"
176-
jq -c -n --arg users "$allowListUsers" '$users | split(",") | map({"ignoresPlayerLimit":false,"name": .})' > "$f"
174+
jq -c -n --arg users "$allowListUsers" '$users | split(",") | map({"ignoresPlayerLimit":false,"name": .})' > "allowlist.json"
177175
# activate server property to enable list usage
178-
WHITE_LIST=true
179176
ALLOW_LIST=true
177+
rm -f whitelist.json
180178
else
181179
rm -rf whitelist.json allowlist.json
182180
WHITE_LIST=false

0 commit comments

Comments
 (0)