1 parent
3cf8c20ca4
commit
0c4a78fe9d
3 files changed
+18
-5
No files matched your search
@@ -142,6 +142,8 @@ There are two ways to handle a whitelist. The first is to set the `WHITE_LIST` e
|
|||||||
-e WHITE_LIST_USERS="player1,player2,player3"
|
-e WHITE_LIST_USERS="player1,player2,player3"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> Starting with 1.16.230.50, `ALLOW_LIST`, `ALLOW_LIST_USERS`, and the file `allowlist.json` will be used instead.
|
||||||
|
|
||||||
## More information
|
## More information
|
||||||
|
|
||||||
For more information about managing Bedrock Dedicated Servers in general, [check out this Reddit post](https://old.reddit.com/user/ProfessorValko/comments/9f438p/bedrock_dedicated_server_tutorial/).
|
For more information about managing Bedrock Dedicated Servers in general, [check out this Reddit post](https://old.reddit.com/user/ProfessorValko/comments/9f438p/bedrock_dedicated_server_tutorial/).
|
||||||
|
|||||||
+12
-5
@@ -115,12 +115,19 @@ if [ -n "$OPS" ] || [ -n "$MEMBERS" ] || [ -n "$VISITORS" ]; then
|
|||||||
]| flatten' > permissions.json
|
]| flatten' > permissions.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$WHITE_LIST_USERS" ]; then
|
allowListUsers=${ALLOW_LIST_USERS:-${WHITE_LIST_USERS}}
|
||||||
echo "Setting whitelist"
|
|
||||||
rm -rf whitelist.json
|
if [ -n "$allowListUsers" ]; then
|
||||||
jq -n --arg users "$WHITE_LIST_USERS" '$users | split(",") | map({"name": .})' > whitelist.json
|
echo "Setting allow list"
|
||||||
# flag whitelist to true so the server properties process correctly
|
for f in whitelist.json allowlist.json; do
|
||||||
|
if [ -f $f ]; then
|
||||||
|
rm -rf $f
|
||||||
|
jq -n --arg users "$allowListUsers" '$users | split(",") | map({"name": .})' > $f
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
# activate server property to enable list usage
|
||||||
export WHITE_LIST=true
|
export WHITE_LIST=true
|
||||||
|
export ALLOW_LIST=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set-property --file server.properties --bulk /etc/bds-property-definitions.json
|
set-property --file server.properties --bulk /etc/bds-property-definitions.json
|
||||||
|
|||||||
@@ -51,6 +51,10 @@
|
|||||||
"env": "WHITE_LIST",
|
"env": "WHITE_LIST",
|
||||||
"allowed": ["true","false"]
|
"allowed": ["true","false"]
|
||||||
},
|
},
|
||||||
|
"allow-list": {
|
||||||
|
"env": "ALLOW_LIST",
|
||||||
|
"allowed": ["true","false"]
|
||||||
|
},
|
||||||
"view-distance": {
|
"view-distance": {
|
||||||
"env": "VIEW_DISTANCE"
|
"env": "VIEW_DISTANCE"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user