Minecraft Server: Set up whitelist

Minecraft Whitelist

A Minecraft server whitelist is a list of player names. If you enable a whitelist on your server, only players who are on the whitelist will be able to join. To create a whitelist, you usually need to edit your server configuration files. With a Minecraft server from G-Portal, you can easily create your whitelist through our web interface.

Minecraft whitelist in the G-Portal web interface

Whitelisting is very easy with a Minecraft server from G-Portal. In the video we show you step by step what you have to consider:

You can read about the individual steps to whitelisting:

  1. Log on to our website
  2. Click on “My Server” in the menu on the left
  3. Select the chosen server
  4. Click on “Basic Settings” in the menu on the left
  5. Activate the option “Whitelist”
  6. Enter the Player ID under “Whitelist
  7. Restart the server to implement the changes

NotePlayers with OP rights will automatically appear on the whitelist.

Minecraft Whitelist: Configuration files

To create a whitelist without our web interface, you first need to go to the server.properties file and change the “white-list=false” setting to “white-list=true”. After that you can edit the file whitelist.json. There the player names must be listed according to the following structure:

[
   {
     "uuid": "xxxxxxxxxxxxxxxxxx",
     "name": "spieler1"
   },
   {
     "uuid": "xxxxxxxxxxxxxxxxxx",
     "name": "spieler2"
   },
   {
     "uuid": "xxxxxxxxxxxxxxxxxx",
     "name": "spieler3"
   }
 ] 

Simply enter the player name under “name” and add his Universally Unique Identifier under “uuid”. This can be determined via the Mojang API. For this you need the following link: https://api.mojang.com/users/profiles/minecraft/username

Just replace “username” with the corresponding user to see his UUID.

Minecraft Whitelist: Commands

Alternatively, you can edit your Minecraft server whitelist in-game at any time. The following Minecraft whitelist commands are available for this purpose:

Enable/disable Minecraft whitelist:

/whitelist on
/whitelist off 

View the whitelist:

/whitelist list 

Add or remove players:

/whitelist add USERNAME
/whitelist remove USERNAME 

Reload whitelist:

/whitelist reload 

similar articles