How do I give a player OP on my Minecraft server?
How to give a player OP rights on your Minecraft server from the console in the game panel, and how to remove them again with deop.
By Yvan Watchman Updated
You give a player OP in the game panel console with the command op <playername>. An OP (operator) can use all admin commands, such as /gamemode, /whitelist and /ban.
Give a player OP
- Log in to the game panel and open your server.
- Make sure the server is running.
- At the bottom of the Console, in the Type a command... field, type:
op <playername>
Replace <playername> with the player's Minecraft name, for example op Steve.
Tip
In the console you type commands without a /. In the Minecraft chat you do put a / in front.
Remove OP again
deop <playername>
Note
Only give OP to people you trust. An OP can ban players, change the world and make other players OP too.
Give fewer rights
Want to give someone a few commands but not full OP? Use a permissions plugin such as LuckPerms. It lets you decide per player or group which commands are allowed. It works on Paper, Purpur and Spigot. See How do I install a plugin on my Minecraft server?
Check
The console shows Made <playername> a server operator. In Minecraft the player can now use /gamemode creative, for example. Everyone with OP is also listed in the ops.json file under Files.
Did this article help you?
Related articles
How do I install mods on my Minecraft server?
How to install mods on your Minecraft server: switch your server to Fabric in the client portal, add Fabric API and upload your mods.
How do I install a modpack on my Minecraft server?
How to put a modpack on your Minecraft server with the modpack installer in the game panel: CurseForge, Modrinth, Feed The Beast and more.
How do I change the version of my Minecraft server?
How to switch Minecraft version or server type through the Reinstall tab in the client portal. Your world and plugins stay in place.
Why can't I connect to my Minecraft server?
Cannot connect to your Minecraft server? Go through the most common causes: server off, wrong address, different version, whitelist or mods.