Minecraft
How to give yourself op in a Minecraft server
To give yourself op, type op yourusername in the server Console. In game, only an existing operator can run the command.
Steps
- Open the Console tab in your panel.
- Type op yourusername and press enter.
- Join the game and test with a command such as gamemode creative.
No Console access?
If you cannot use the Console, ask the host or whoever manages the server. You cannot op yourself from a regular player account.
Operator levels
Operator permission levels exist in the ops.json file. Level 4 is the highest in vanilla. Edit carefully and follow current documentation.
If you use plugins
Use a permissions plugin such as LuckPerms to give staff only what they need rather than full op. Our LuckPerms guide covers ranks.
Remove op
Run deop username in the Console.
Security
- Op only people you trust.
- In offline mode, ops can be impersonated, so use authentication.
Common mistakes
- Typing the display name instead of the account name.
- Running the command from chat without a slash and without permission.
- Giving op to too many players.
- Misspelled usernames.