What does a whitelist do?
Whitelisting allows you to choose who has access to your Minecraft server through a list. This is a great way to prevent any unwanted players from joining your server because only approved names will be allowed to connect. This feature is baked into every Minecraft server and is very easy to setup.
IMPORTANT NOTES:
- You must be OP / operator in your server to add or remove players from the whitelist while in game.
- Any server OP / operators are excluded from whitelists and therefore will bypass the list.
How to setup a whitelist:
This setting is disabled by default, and is controlled by “enforce-whitelist=false” in server.properties. When enabled, only player names within this list will be able to connect to your server. Here’s how to enable it:
- If your server is running, shut it down with the red Stop
- Select the Files tab on your server, scroll down and select the properties file.
- Locate the enforce-whitelist=false This is currently line 57 in the file. Once located, change false to true to enable the whitelist.
- Click the blue Save Content button to save your changes.
At this point the whitelist has been enabled. You can also change the whitelist message when someone tries to join that is not on this list. Keep reading for instructions.
- If you are no longer in the Files tab on your server, return to this location and locate the yml file.
- Locate “whitelist: You are not whitelisted on this server!” currently located at line 36.
- Modify text after “whitelist:” to whatever you want and Save Content.
- That’s it!
How to Add or Remove Whitelisted Players in Minecraft
- To add players, use the command /whitelist add playername. (ex. /whitelist add SCHEvan)
- To remove players, use the command /whitelist remove playername. (ex. /whitelist remove SCHEvan)