docker-minecraft-bedrock-server icon indicating copy to clipboard operation
docker-minecraft-bedrock-server copied to clipboard

Allowlist.json file example and usage

Open trigun539 opened this issue 2 years ago • 4 comments

Having a hard time getting the allowlist.json file to work. Keep getting the user has not been invited message when connecting. Can we please add some example of how to set this up properly? Format of the allowlist.json and usage with the right environment variables.

Is ALLOW_LIST_USERS a comma separated xuids, uuids? or usernames?

trigun539 avatar Oct 27 '22 11:10 trigun539

I should probably update the section heading, but this is the description and example:

https://github.com/itzg/docker-minecraft-bedrock-server#whitelist

itzg avatar Oct 27 '22 19:10 itzg

I think the wiki page that you reference might have to be updated. Does the allowlist.json still use UUID's for users, or just XBox Gamertags?

jonvel avatar Aug 18 '23 16:08 jonvel

The new section link is https://github.com/itzg/docker-minecraft-bedrock-server/tree/master#allowlist

As for ALLOW_LIST_USERS it is a list of Xbox gamer tags.

itzg avatar Aug 18 '23 17:08 itzg

Here what worked for me, sample allowlist.json

[
  {
    "name": "XBOX USERNAME",
    "xuid": "xuid gotten from website below"
  },
  ....
]

To get xuid, look at: https://cxkes.me/xbox/xuid Type xbox username and copy the XUID (DEC) given. This value is what you use in the allowlist.json xuid field.

trigun539 avatar Aug 24 '23 10:08 trigun539

There are ways Minecraft has automated the creation of the allowlist.json file. You just have to enter the console command "allowlist add " and it will automatically add the xuid to the file when a player with the matching gamertag joins. It's all outlined in the "bedrock_srver_how_to.html" file as of writing this.

racecarburton avatar Sep 24 '24 19:09 racecarburton

Good point @racecarburton . That could be utilized by running the commands this way https://github.com/itzg/docker-minecraft-bedrock-server/tree/master#executing-server-commands

Being able to pre-assign those users on a freshly created container is also useful, but gets into this challenge of finding those XUIDs to assign.

itzg avatar Sep 24 '24 21:09 itzg