Skip to content
[/craft]
Give a Player OP

Give a Player OP

Grant operator permissions to a player. Run: `/op PlayerName`. Grants operator (OP) status to a player, giving them access to all commands and bypassing permission checks. Replace PlayerName with the exact username. On Java, OP level (1-4) is configurable in ops.json. Use /deop PlayerName to revoke. This command can only be run from the server console or by an existing OP. Works on Java 26.2 and Bedrock 26.32. Last verified June 2026.

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026
/op PlayerName

How to use

  1. From the server console or as an existing OP, type /op PlayerName.
  2. Press Enter — the player now has OP permissions.
  3. Use /deop PlayerName to remove OP.

Frequently asked questions

Does Give a Player OP work on Bedrock Edition?

Yes -- the same command works on both Java 26.2 and Bedrock 26.32.

Do you need OP or cheats enabled to use Give a Player OP?

Yes -- you need operator permissions (OP) on a server, or cheats enabled in your world settings (Java: open to LAN with cheats on; Bedrock: enable cheats in world settings).

Can Give a Player OP be used in a command block?

No -- this command can only be run from the chat window, not from a command block.

Does Give a Player OP work in multiplayer?

Yes -- the command works the same in multiplayer as in singleplayer. Operator permissions may be required depending on your server settings.

Related commands

Need something different?

Customize this command in the /execute builder — choose your own options and copy the result.

Open builder →

Learn more

📖

Minecraft Commands Not Working -- How to Fix

Troubleshooting guide for Minecraft commands that show errors or do nothing -- covers cheats off, wrong edition, syntax errors, OP permissions, and version changes.