What is a Whitelist?
A whitelist is a list of approved player usernames that are allowed to join your server. When enabled, any player not on the whitelist will be automatically kicked with a message indicating they're not whitelisted.
Benefits of Using a Whitelist
- Security: Prevents unauthorized players from joining
- Control: Manage exactly who has access to your server
- Privacy: Keep your server private for friends or specific communities
- Performance: Reduce server load by limiting player count
- Works with Offline Mode: Provides authentication when using offline mode
Tip
Whitelists are especially important when using offline mode, as they provide an additional layer of security by controlling who can access your server.
How to Enable and Configure a Whitelist
Step 1: Enable Whitelist in server.properties
- Access your server's
server.propertiesfile - Find the line
white-list=false - Change it to
white-list=true - Save the file
# Enables the whitelist
white-list=true
Step 2: Enforce Whitelist (Optional but Recommended)
To ensure the whitelist is always enforced, even for operators:
- Find the line
enforce-whitelist=falseinserver.properties - Change it to
enforce-whitelist=true - Save the file
# Enforces the whitelist even for operators
enforce-whitelist=true
Step 3: Restart Your Server
- Save all changes to
server.properties - Restart your Minecraft server from the Pterodactyl panel
- Wait for the server to fully start
Step 4: Add Players to the Whitelist
You can add players using either method:
Method 1: Using the Server Console
- Open your server console in the panel
- Use the whitelist command:
whitelist add <username>
For example:
whitelist add Notch
whitelist add jeb_
Method 2: Using the whitelist.json File
- Access your server's file manager
- Open the
whitelist.jsonfile (it will be created automatically after enabling the whitelist) - Add player entries in JSON format:
[
{
"uuid": "069a79f4-44e9-4726-a5be-fca90e38aaf5",
"name": "Notch"
},
{
"uuid": "853c80ef-3c37-49fd-aa49-938b0ada1c0b",
"name": "jeb_"
}
]
Note
You'll need each player's UUID when manually editing the whitelist.json file. You can find UUIDs using online tools like Minecraft UUID Lookup, or use the console command which automatically fetches the UUID.
Step 5: Reload the Whitelist
After adding players via the JSON file, reload the whitelist:
- Open the server console
- Type:
whitelist reload - The server will reload the whitelist without requiring a restart
Managing Your Whitelist
View Current Whitelist
To see all whitelisted players:
whitelist list
Remove a Player from Whitelist
whitelist remove <username>
Remove All Players
whitelist remove *
Disable Whitelist Temporarily
You can disable the whitelist without removing players:
- Open
server.properties - Set
white-list=false - Restart the server
Players will remain in whitelist.json and can be re-enabled later.
Whitelist Commands Reference
| Command | Description |
|---|---|
whitelist add <player> | Add a player to the whitelist |
whitelist remove <player> | Remove a player from the whitelist |
whitelist list | List all whitelisted players |
whitelist on | Enable the whitelist |
whitelist off | Disable the whitelist |
whitelist reload | Reload the whitelist from whitelist.json |
Troubleshooting
Player Can't Join Despite Being Whitelisted
- Verify the username is spelled correctly (case-sensitive)
- Check that
white-list=truein server.properties - Ensure the server has been restarted after enabling the whitelist
- Try using
whitelist reloadcommand - Verify the player's UUID matches if using whitelist.json
Important
Usernames are case-sensitive! Make sure the username in the whitelist exactly matches the player's username, including capitalization.
Whitelist Not Working
- Confirm
white-list=trueis set correctly - Check for typos in
server.properties - Ensure the server was restarted after changes
- Verify
enforce-whitelist=trueif you want strict enforcement
Finding Player UUIDs
For online mode servers, the UUID is automatically generated. For offline mode or manual entry:
- Use online UUID lookup tools
- Or use the command:
/whitelist add <username>which will automatically fetch the UUID
Best Practices
- Regular Updates: Keep your whitelist updated and remove inactive players
- Backup: Regularly backup your
whitelist.jsonfile - Documentation: Keep a list of whitelisted players and their roles
- Combine with OPs: Use whitelist for access control and operator permissions for admin rights
- Use with Offline Mode: Whitelist is especially important when using offline mode for security