Back to Minecraft Java
Games· Minecraft Java

How to Enable and Configure a Whitelist on Your Minecraft Java Server

Jesse K.
4 min readUpdated Nov 5, 2026

Learn how to turn on the whitelist for your Minecraft Java server and manage which players are allowed to join, all from the RiverHosting panel.

A whitelist lets you control exactly who can join your Minecraft Java server. When the whitelist is turned on, only players you have added to the list will be able to connect. Everyone else will be turned away automatically. This is useful for private servers, friend groups, or any community where you want to keep strangers out.

Before you start

  • Make sure you have an active Minecraft Java server with RiverHosting.
  • You will need to know the Minecraft usernames of the players you want to allow.
  • Log in to the RiverHosting game panel at panel.riverhosting.com before following these steps.
Usernames are case-sensitive

Minecraft Java Edition uses exact usernames. Double-check the spelling and capitalisation of each player's name before adding them.

1. How to turn on the whitelist

There are two ways to enable the whitelist on your server. The easiest method is through the Properties page in the panel.

  1. Log in to the panel at panel.riverhosting.com and select your Minecraft Java server.
  2. In the GAME section of the left-hand menu, click Minecraft: Java, then the Properties tab at the top of the page.
    Minecraft: Java in the GAME section of the menu, then the Properties tab
  3. In the Security & Advanced card, find Whitelist (white-list) and set it to true.
    The Whitelist setting on the Properties page
  4. Click Save Changes.
    The Save Changes button on the Properties page
  5. Accept the restart the page offers, or go to the Console page and click Restart to apply the change.
The Restart button on the Console page

The other way is to type whitelist on in the console while the server is running. This turns the whitelist on straight away, without a restart.

Prefer to edit the file directly?

You can also open Files, find the file named server.properties, and set white-list=true. Save the file, then restart your server.

2. How to add players to the whitelist

Once the whitelist is turned on, you need to add the players you want to allow. The easiest way is the Players page at the top of the left-hand menu: find the player and click Whitelist. The Whitelisted filter shows everyone on the list. You can also use a console command:

  1. Go to your server in the panel and click Console.
  2. In the command input box at the bottom, type the following command and press Enter:
whitelist add PlayerName

Replace PlayerName with the exact Minecraft username of the player you want to add.

  1. Repeat this for each player you want to allow on your server.
  2. To confirm the player was added, type whitelist list in the console and press Enter. The console will show all whitelisted players.
Players already online

If a player is already connected when you enable the whitelist, they will not be kicked automatically. The whitelist only applies to new connection attempts. Restart the server if you want to enforce it immediately for everyone.

3. How to remove a player from the whitelist

If you need to remove someone from the whitelist, open the Players page and click Unwhitelist on that player, or use the console.

  1. Open the Console in the panel.
  2. Type the following command and press Enter:
whitelist remove PlayerName

Replace PlayerName with the username of the player you want to remove.

  1. The player will no longer be able to join your server the next time they try to connect.

4. How to edit the whitelist file directly

If you prefer, you can manage the whitelist by editing the whitelist.json file. This can be useful if you need to add or remove several players at once.

  1. In the panel, click Files.
  2. Locate the file called whitelist.json in the root of your server folder.
  3. Click the file to open it in the editor.
  4. You will see entries in this format:
[
  {
    "uuid": "player-uuid-here",
    "name": "PlayerName"
  }
]

Each player has a name and a UUID (a unique ID that Minecraft uses internally). You can add players using console commands as described above and then view this file to see how entries look. Editing the file manually without a valid UUID can cause issues, so using console commands is recommended for most people.

Be careful editing JSON

If you remove a comma, bracket, or quotation mark by mistake, the file may break and prevent your server from reading the whitelist correctly. Always double-check your edits before saving.

  1. When you are done, click Save.
  2. Return to the console and run whitelist reload so the server picks up your changes without needing a full restart.

Troubleshooting

  • Players are still being allowed in after enabling the whitelist. Make sure you restarted the server after turning whitelist on. Also confirm that white-list=true is saved in server.properties.
  • A player says they are getting a "Not whitelisted" error but you added them. Check the spelling of their username. Minecraft Java Edition usernames are case-sensitive. Try removing and re-adding them using the exact username they use to log in.
  • The whitelist.json file looks empty or missing. Run whitelist add PlayerName from the console at least once. This will create and populate the file automatically.
  • Changes to whitelist.json are not taking effect. Run whitelist reload in the console after editing the file, or restart the server.
  • I cannot find the whitelist setting. It is not on the Startup page. Open Properties and look in the Security & Advanced card, or edit server.properties directly using Files and set white-list=true, then restart.

Need help?

If you run into an issue that is not covered here, the RiverHosting support team is happy to help. You can reach us through the support page and we will get back to you as quickly as possible.

Contact support

Visit riverhosting.com/support to open a ticket or find other ways to get in touch with us.

Similar Articles