In this guide, we will learn how to set a player as OP (admin) (add an admin to a minecraft server)
This can be done in two ways
Method 1 Add a Minecraft server Admin Using op username command
1- Login to the Game Control Panel and navigate to your server
2- Click on Web Console in the side menu
3- In the Web Console command field, use the following commands:
Type /op username
(replacing username with the player's in-game username).
You can undo this by typing /deop username
4- Hit Enter, Done
Method 2 Add a Minecraft server Admin to your ops.json file
Some Minecraft versions doesnt load properly in the Web Console due to a Mod/Plugin criteria or older version of MC/Mod/Plugins. Another possibility is the incompatibility with the Java selected vs MC version, thats why we highly recommend that you check the Mod/Plugins compatible Java version based on its authors page and select your Java version based on it as the script (Auto Decided) in "Select Java Version " in our Gaming Panel menu doesnt always select the most compatible version.
Ex. This server is loaded and working but the Web Console didnt load properly:
In this case, you can add the admin(s) by editing ops.json as following:
1- Login to your server and navigate to your server
2- Click on "File Manager" in the side menu
3- Double Click on "ops.json"
Explanation:
[
{
"uuid": "UUID-goes-here",
"name": "xadmin",
"level": 4
},
{
"uuid": "UUID-goes-here",
"name": "Xgamingserver02",
"level": 4
}
]
4- Save & Exit
5- If admin didnt take effect in server, you need to restart the server
Customize admin permissions with permission plugin
All operators will have the same level of access to the server – you should install a permissions plugin to designate different access levels for your admins. Ex.GroupManager or PermissionsEX
Useful Minecraft Server admin commands
Command | Purpose | Condition |
ban <playername> [reason] |
Blacklists the name playername from the server so that they can no longer connect. Note: Bans supersede any whitelisting in place. | Always succeeds. |
ban-ip <ip-address \| playername> |
Blacklists an IP address so that all subsequent connections from it are rejected. | ip-address must be valid orplayername must be online. |
banlist [ips] |
Displays the banlist. To display banned IP addresses, use the command “banlist ips” | Always succeeds. |
deop <playername> |
Revokes a player’s operator status. | Always succeeds. |
kick <playername> [reason] |
Forcibly disconnects playername from the server, displaying an optionalreason to them. | Playername must be online. |
list |
Shows the names of all currently-connected players (the same can be achieved when pressing tab) | Always succeeds, even in a command block. |
op <playername> |
Grants playername operator status on the server. | Always succeeds |
pardon <playername> |
Removes playername from the blacklist, allowing them to connect again. | Always succeeds |
pardon > |
Removes ip-address from the IP blacklist, allowing players from that IP address to connect to the server. | ip-address must be valid. |
save-all |
Forces the server to write all pending changes to the world to disk. | Always succeeds |
save-off |
Disables the server writing to the world files. All changes will temporarily be queued. | Always succeeds |
save-on |
Enables the server writing to the world files. This is the default behavior. | Always succeeds |
stop |
Gracefully shuts down the server. | Always succeeds |
whitelist <add \| remove> <playername> |
Adds or removes playername from the whitelist. | Always succeeds |
whitelist list |
Displays all players in the whitelist. | Always succeeds |
whitelist <on \| off> |
Enables/disables the server’s use of a whitelist. Note: Server ops will always be able to connect when the whitelist is active, even if their names do not appear in the whitelist. | Always succeeds |
whitelist reload |
Reloads the list of playernames in white-list.txt from disk (used when white-list.txt has been modified outside of Minecraft). | Always succeeds |