
/op
Gives a player operator rights. Its basic form is /op <targets>; it has 1 syntax form and 1 argument. Permission: Op level 3.
/op syntax
Game dataEvery form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.
/op <targets>/op examples
Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.
/op Steve- Gives Steve operator rights (permission level 4 by default on a server).
/op arguments
What each argument expects, with the limits the game enforces.
| Argument | Expects | Limits |
|---|---|---|
<targets> | Player name or selector | — |
Related commands
Data: Minecraft Java Edition 26.3 game files. How we source this
Gives a player operator rights. It has 1 syntax form and can be run by: Op level 3.
See Also
Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.
/op FAQ (Java 26.3)
What does /op do in Minecraft?
Gives a player operator rights.
What is the syntax of /op?
The basic form is /op <targets>. All forms are listed above.
What is an example of /op?
/op Steve — Gives Steve operator rights (permission level 4 by default on a server).
Do you need cheats for /op?
Yes: Op level 3. In singleplayer turn on Allow Cheats (or open to LAN with cheats).