updating bedrock script to write whitelist (#101)
This commit is contained in:
1 parent
2dc95f3ea1
commit
77f52927b8
2 files changed
+16
No files matched your search
@@ -116,6 +116,14 @@ in the "LAN Games" part of the "Friends" tab, such as:
|
||||
|
||||

|
||||
|
||||
## Whitelist
|
||||
|
||||
The whitelist works with player names. The server will look up the names and add in the XUID to match the player.
|
||||
|
||||
```shell
|
||||
-e WHITELIST "player1,player2,player3"
|
||||
```
|
||||
|
||||
## 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/).
|
||||
|
||||
@@ -94,6 +94,14 @@ if [ ! -f "bedrock_server-${VERSION}" ]; then
|
||||
mv bedrock_server bedrock_server-${VERSION}
|
||||
fi
|
||||
|
||||
if [ -n "$WHITE_LIST" ]; then
|
||||
echo "Setting whitelist"
|
||||
rm -rf whitelist.json
|
||||
echo $WHITE_LIST | awk -v RS=, 'BEGIN{print "["}; {print "{ \"name\": \"" $1 "\" },"}; END{print "]"}' > whitelist.json
|
||||
# flag whitelist to true so the server properties process correctly
|
||||
export WHITE_LIST=true
|
||||
fi
|
||||
|
||||
set-property --file server.properties --bulk /etc/bds-property-definitions.json
|
||||
|
||||
export LD_LIBRARY_PATH=.
|
||||
|
||||
Reference in new issue
Block a user