ImperialHost.cc · Guides · Minecraft
Whitelist and operators (op) on a Minecraft server
The whitelist lets in only the players you put on it. An operator (op) can use every command on the server. You set both with a few commands in the console.
Before you start
- A Minecraft Java server with us and access to the game panel.
- The exact names of the players' Minecraft Java accounts.
1. Turn on the whitelist
- In the game panel open the Console tab. Type the commands in the line at the bottom, without a slash at the start.
whitelist onturns the whitelist on. From then on only players on the list can join.whitelist add Nameadds a player,whitelist remove Nameremoves them andwhitelist listshows the whole list.- Players already on the server who are not on the list stay connected. To have the server kick them at once, set the line
enforce-whitelist=trueinserver.properties: stop the server (Stop, the square at the top near the server's name), edit the file, save it (Save Content) and start the server (Start, the triangle).
2. Give someone operator rights
op Namemakes a player an operator,deop Nametakes the rights away.- In the game an operator types the same commands with a slash, for example
/whitelist add Name. - An operator can do everything, even stop the server. For finer roles such as a moderator use the LuckPerms plugin: Install plugins on a Minecraft server (Paper).
What operators may do is set by op-permission-level in server.properties (4 = everything).
Troubleshooting
I can't add a player
The name must exactly match an existing Minecraft Java account. Check for a typo.
I want to edit whitelist.json or ops.json by hand
You can, but only while the server is stopped: a running server overwrites the files with its own list. The console commands are easier.
Not an official Minecraft service. Not approved by or associated with Mojang or Microsoft.
Still stuck?
Message us on Discord. The AI assistant Aurel answers first, and you can call an admin. Or open a ticket in the client area.