> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.namehero.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How To Set Up Whitelist On Your Minecraft Server

Enabling a whitelist on your Minecraft server is a crucial step for maintaining control over who can join your game. This feature allows you to create a list of approved players, ensuring that only those you trust can access your server. By enabling the whitelist, you can protect your world from unwanted visitors, enhance security, and create a more enjoyable and safe environment for you and your friends. In this guide, we will walk you through the simple steps to enable and manage the whitelist on your Minecraft server.

No matter if you’re running a Spigot, Paper, Forge, or Fabric Minecraft server, you can always use the whitelist feature. You just need to enter a few commands to turn it on and add players. Make sure you have [operator privileges](https://help.namehero.com/en/articles/9406579-how-to-give-operator-op-to-a-player-in-minecraft) or use these commands in the advanced game panel because only owners and administrators can use this feature. The whitelist stays active even after you restart the server, so you'll need to turn it off manually if you don’t want it anymore. Follow the steps below to learn how to set up a private Minecraft server.

## In Game

1. Connect to your Minecraft Java Server, then open the in-game chat.

2. Proceed to type **/whitelist on** and press `Enter` on your keyboard.

3. run **/whitelist add [player]** to add a player.

## Advanced Game Panel

**Step 1:** Go to your [NameHero Client Area](https://www.namehero.com/clientarea.php) and head over to the **Advanced Game Panel** by clicking the blue button as seen in the screenshot within the NameHero Client Area. Here you will be accessing the **Console.**

[![](https://storage.crisp.chat/users/helpdesk/website/2ddcc76a175acc00/87261644-f2e4-4dbd-8411-999f52_1rsqnr6.png)](https://downloads.intercomcdn.com/i/o/1068028509/888c972ad937c9bd71257f76/image.png?expires=1728570600&signature=b89924b5e30c1aa16d3237e19516f68fb51bb5806e3d04e6c5ead8434cdde6aa&req=dSAhHsl8lYRfUPMW1HO4zeomLG3LPGiAQXe8POg7AvEao8Zcfb5EcFQpyNWf%0APR267bJtFuyMRXiQ%2Fd4%3D%0A)

​**Step 2**: In the console, enter `whitelist on`.  
​

**Step 3**: Next, enter whitelist `username`. Replacing `username` with the player you want to whitelist and hit enter.  
​  
Note: If the username of the player you're trying to OP has a space in their name, you will have to surround their username with quotes, like: `whitelist "NameHero Gamer123"`

**Not a NameHero customer yet?** Elevate your gaming experience with one of our gaming servers today!

[Learn More](https://www.namehero.com/game-hosting)

​