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"
|
||||
```
|
||||
|
||||
> Starting with 1.16.230.50, `ALLOW_LIST`, `ALLOW_LIST_USERS`, and the file `allowlist.json` will be used instead.
|
||||
|
||||
## 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/).
|
||||
|
||||
+12
-5
@@ -115,12 +115,19 @@ if [ -n "$OPS" ] || [ -n "$MEMBERS" ] || [ -n "$VISITORS" ]; then
|
||||
]| flatten' > permissions.json
|
||||
fi
|
||||
|
||||
if [ -n "$WHITE_LIST_USERS" ]; then
|
||||
echo "Setting whitelist"
|
||||
rm -rf whitelist.json
|
||||
jq -n --arg users "$WHITE_LIST_USERS" '$users | split(",") | map({"name": .})' > whitelist.json
|
||||
# flag whitelist to true so the server properties process correctly
|
||||
allowListUsers=${ALLOW_LIST_USERS:-${WHITE_LIST_USERS}}
|
||||
|
||||
if [ -n "$allowListUsers" ]; then
|
||||
echo "Setting allow list"
|
||||
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 ALLOW_LIST=true
|
||||
fi
|
||||
|
||||
set-property --file server.properties --bulk /etc/bds-property-definitions.json
|
||||
|
||||
@@ -51,6 +51,10 @@
|
||||
"env": "WHITE_LIST",
|
||||
"allowed": ["true","false"]
|
||||
},
|
||||
"allow-list": {
|
||||
"env": "ALLOW_LIST",
|
||||
"allowed": ["true","false"]
|
||||
},
|
||||
"view-distance": {
|
||||
"env": "VIEW_DISTANCE"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user