Minecraft: How to Make Yourself Admin (OP)
How to make yourself admin (OP) on your DatHost Minecraft server with the op command, and how to add or remove other admins.
An admin in Minecraft is called an operator, or OP. Operators can use commands that normal players can't, like changing the game mode, teleporting, kicking and banning players.
In this article
How to make yourself OP
- Join your server in Minecraft at least once, so the server knows your username.
- Go to your DatHost Control Panel and click Edit on your Minecraft server.
- Click Console in the left menu.
- Type the command below and press Enter. Use your exact Minecraft username, and don't add a slash in the console.
op YourMinecraftUsername
- On a Java server, the console replies
Made YourMinecraftUsername a server operator. You're now OP.

Bedrock: use your Xbox gamertag. If it has a space, put it in quotes: op "Your Gamertag".
Once you're OP, you can make other players OP from inside the game with /op <player>.
Commands you can use as OP
In game, commands start with a slash. In the console, leave the slash out.
/gamemode creativeor/gamemode survival: change your game mode/tp <player1> <player2>: teleport one player to another/weather clear: stop rain or storms/kick <player>: kick a player/ban <player>: ban a player
See the Minecraft Wiki's list of commands for everything else.
Commands don't work
The console says the player doesn't exist. Check the spelling of the username. Then join the server once with that account, and try again.
I'm OP, but some commands still say I don't have permission. Check Op Permission Level on the Settings page. Set it to 4 for full access, save, and restart the server. Some mods, like Carpet, need level 4.
Nothing happens when I type in the console. Make sure there's no / at the start. Type op YourMinecraftUsername , not /op YourMinecraftUsername.
I use a permissions plugin like LuckPerms. OP still gives you every permission. The plugin decides what everyone else can do. Use the plugin's own commands to give other players permissions without making them OP.
Common questions
How do I remove admin from a player? In the console, type deop <player>. In game, use /deop <player>.
Can I make more than one player OP? Yes. Run op <player> for each player.
How do I remove everyone's OP at once? Stop the server first. Then, in the File Manager, open ops.json (Java) or permissions.json (Bedrock) and remove the players you want to take off. Save and start the server. If you edit the file while the server is running, the server writes the old list back.