How to OP Yourself (Make Yourself Admin) on a Minecraft Server
Trying to run a command like /gamemode creative or /give on your own server and getting "You do not have permission to use this command"? That's because you're not an operator (OP) yet - OP is Minecraft's built-in admin status, and you have to grant it from the server side. Here's how to OP yourself in about 30 seconds.
op YourUsername (no slash, and it's your exact in-game name). You're now an admin and can run any command. On Bedrock/crossplay servers, your name usually has a . in front (like .Steve) - you must include it.What OP actually is
An operator is a server admin. Being OP lets you run all the powerful commands - /gamemode, /give, /tp, /time, /weather, /ban, and more - and use command blocks. New players can't run these by design, which is why you need to grant yourself OP first.
Method 1 - From the server console (the reliable way)
This works even if no one can run commands in-game yet:
- Open your server's console (on FreaksMC, that's the main page of your server in the panel).
- Type your username with the
opcommand - no slash, because you're in the console, not chat:op YourUsername - Press Enter. You'll see "Made YourUsername a server operator."
- Hop in-game (or re-log) and your commands will work.
Use your exact name. It's case-sensitive-ish and must match your Minecraft username exactly. If it says the player was never on the server, join the server once first so it knows who you are, then run the command.
Method 2 - In-game (if you're already OP)
Once you're an operator, you can OP other people from in-game chat with a slash:
/op FriendUsername
The Bedrock / crossplay gotcha
This trips up a lot of people running crossplay servers. When Bedrock players join through Floodgate, their username gets a prefix character (a . by default), so "Steve" shows up as .Steve. To OP a Bedrock player you have to include that prefix:
op .Steve
If op Steve says the player doesn't exist but they're clearly online, that's why - check the exact name (including the .) in your player list or the ops.json file.
OP levels (1-4)
Operators have a permission level (set by op-permission-level in server.properties, default 4):
| Level | Can do |
|---|---|
| 1 | Bypass spawn protection |
| 2 | Use most command-block commands, /gamemode, /give |
| 3 | /ban, /kick, /op other players |
| 4 | Everything, including /stop |
Most people leave it at 4 so ops have full control.
How to remove OP
To take admin away from someone (or yourself):
deop Username
Your console, one click away
Every FreaksMC server has a live console built right into the panel - so OPing yourself, running commands, and managing your world takes seconds. Founder-run, with real humans if you get stuck.
See plans from $3/moOne important warning
Only OP people you fully trust. A level-4 operator can do anything - change gamemodes, spawn items, ban players, even stop the server. For regular players you want to give some permissions without full admin, use a permissions plugin like LuckPerms instead of OP. (See how to add plugins.)
Quick checklist
- Open your server console.
- Type
op YourUsername(no slash) - and include the.prefix for Bedrock players. - Look for "Made … a server operator."
- Re-log in-game and your commands will work.
- Remove it later with
deop Username; only OP people you trust.
That's it - one console command and you've got the keys to your server. Just make sure your friends can actually connect first if you're still getting set up.
Want a server that just runs fast?
FreaksMC runs on NVMe hardware with performance-tuned defaults baked in - pre-optimized Paper, sane view distances, and one-click world pre-generation. Set up in 60 seconds.
See plans from $3/mo