Managing your Server
·
Sep 24, 2024
Whitelisting is a feature that allows you to limit the players who can access your Minecraft server. When enabled, only whitelisted players can join your server. This is a good way to prevent unwanted players from joining and making changes to your server. This functionality is built into every Java Edition Minecraft server out of the box.
Whitelists are a specific feature to Minecraft Java Edition servers, the Bedrock equivalent is called an Allowlist.
One way you can enable whitelisting on your Minecraft server by configuring it in your server.properties file and restarting server. However, we will cover how to set up whitelisting using console commands, as it does not require you to restart or turn off your server at any point.
You can also send these commands in-game if you have OP permissions. Please refer to this guide for more information on how to become an OP.
Open your server's control panel
In the Server Console window, enter the whitelist on command
You can enable or disable whitelist on your server using one of the following commands:
whitelist on
- This command enables whitelisting. Once enabled, only players on your whitelist can join.
whitelist off
- This command disables whitelist. All players can join the server like normal.
After enabling whitelist, only players who are specifically added to the whitelist and players with OP permissions will be able to connect to the server.
You can add or remove players from the whitelist using one of the following console commands. Keep in mind, players with OP permission can also use these commands in-game:
whitelist add <Username>
- After replacing <Username> with the name of the player you'd like to whitelist, this will add them to the whitelist immediately.
whitelist remove <Username>
- After replacing <Username> with the name of the player you'd like to remove from the whitelist, this will immediately remove them from the whitelist if they were on it before.
That's it! You have successfully learned how to use a whitelist to secure your server.
Game Experience Engineer