Guide · Configuration

How to OP yourself on a Minecraft server

Operator, or OP, status gives a player access to admin commands such as gamemode, teleport and ban. You grant it from the server console, and you should be careful about who else gets it.

Giving yourself OP

Open the server console and run op <yourname>. In the console there is no slash in front of commands. The player does not need to be online, but must have joined at least once or have a valid username. You should see "Made <name> a server operator".

On StormNodes you can also manage operators from the Operators page in the Players section of the panel.

OP levels

The op-permission-level key in server.properties sets what operators can do. The default is 4, full access.

  • Level 1: bypass spawn protection
  • Level 2: cheat commands such as gamemode, give, tp and using command blocks
  • Level 3: player management such as ban, kick, op and whitelist
  • Level 4: everything, including stop and save-all

Removing OP

Run deop <name>. Operators are stored in ops.json in the server folder; you can also edit that file while the server is stopped, which is useful if an operator account has been compromised.

Why not just OP your staff

OP is all or nothing for most purposes. A moderator who only needs to kick and mute should not be able to stop the server or give themselves items. On a Paper server, use a permissions plugin such as LuckPerms to give staff exactly the commands they need, and keep OP for the owner.

Never OP a player because they asked in chat, and never install a plugin that offers to OP players for you. Force-OP is a common payload in malicious plugins.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

Why does /op say I do not have permission?
Only operators can run op in game. Run it from the server console instead, where there is no permission check and no slash.
Can I OP someone on a server without the console?
Only if you are already an operator with level 3 or higher. Otherwise use the server console or the operators page of your hosting panel.
Is OP needed to use plugins?
No. Plugin commands are controlled by permission nodes. A permissions plugin can grant them to any group without making the player an operator.