Knowledgebase Add an Admin (OP) to Your Minecraft Server

Add an Admin (OP) to Your Minecraft Server

Minecraft, Admin 47 Was this answer helpful? Print

There are two ways to give a player operator (admin) rights: the quick Web Console command, or by editing the ops.json file when the console won't load. Try Method 1 first, and fall back to Method 2 if needed.

Before you begin: you'll need access to your server in the Game Control Panel, and the player's exact in-game username.

Method 1 — Using the op command (recommended)

1. Log in to the Game Control Panel and open your server.

Opening your server in the Game Control Panel

2. Open Web Console from the side menu.

3. In the command field, type op username (replace username with the player's exact in-game name) and press Enter.

Typing the op command in the Web Console

Tip: to remove operator rights later, type deop username. That player is now an admin.

Method 2 — Editing ops.json (if the console won't load)

When to use this: some Minecraft versions, mods, or plugins stop the Web Console from loading — often a Java version mismatch. We recommend checking the Java version your mod or plugin requires (on the author's page) and selecting it under Select Java Version in the panel, rather than relying on “Auto”.

Example of a server running but the Web Console not loading

1. Log in to the Game Control Panel and open your server.

Opening your server in the panel

2. Open File Manager from the side menu.

Opening the File Manager

3. Double-click ops.json.

Locating ops.json in the File Manager

4. Add an entry for each admin, following this format:

[
  {
    "uuid": "UUID-goes-here",
    "name": "xadmin",
    "level": 4
  }
]

5. Save & Exit. If the change doesn't take effect, restart the server.

Customizing admin permissions: all operators get the same level of access. To set different access levels per admin, install a permissions plugin such as GroupManager or PermissionsEX.

Useful admin commands

CommandWhat it does
op <player>Grants operator (admin) status.
deop <player>Revokes operator status.
kick <player> [reason]Disconnects an online player, with an optional reason shown to them.
ban <player> [reason]Blacklists a player so they can no longer connect. Bans override any whitelist.
ban-ip <ip>Blacklists an IP address; all connections from it are rejected.
banlist [ips]Shows the ban list. Add ips to show banned IP addresses.
pardon <player>Removes a player from the blacklist.
pardon-ip <ip>Removes an IP address from the blacklist.
listShows all currently connected players (same as pressing Tab).
whitelist <add|remove> <player>Adds or removes a player from the whitelist.
whitelist <on|off>Enables or disables the whitelist. Ops can always connect.
whitelist listDisplays all whitelisted players.
save-allWrites all pending world changes to disk.
save-off / save-onDisables / re-enables the server writing to world files.
stopGracefully shuts down the server.

Was this answer helpful?

Related Articles