The allowlist contains the players who may join. Start your Minecraft Java server and wait until it is online.
- In Console, enter the command below. Replace Alice with your exact Minecraft username and click Send. Repeat for each friend. Start with w, without a forward slash (/).
whitelist add Alice
Display the list and check that every name appears. Add missing names before continuing.
whitelist list
Turn on the restriction, then ask a friend on the list to join.
whitelist on
To remove Alice only:
whitelist remove Alice
To reopen the server to everyone:
whitelist off