How to Grant OP Rights on a Minecraft Java Server
Assign OP rights via the in-game chat
Attention
To execute this command, you must already have OP rights. If you do not have these, use the console or the ops.json method instead.
Info
When assigning OP rights, players automatically receive the OP level that is defined in the server.properties file under the op-permission-level entry.
Log in
Log in to your Minecraft server.Open the chat
Open the chat. By default with thetkey.Enter the command
Enter the following command:/op <player name> # Makes the player an operator/op <player name> # Makes the player an operator
Assign OP rights via the server console
Attention
All commands must be entered in the console without /!
Info
When assigning OP rights, players automatically receive the OP level that is defined in the server.properties file under the op-permission-level entry.
Open the dashboard
Open your dashboard and select your Minecraft Java Edition server.Open the console
Navigate to the server console under the menu item "Overview".Enter the command
Enter the following command:op <player name> # Makes the player an operatorop <player name> # Makes the player an operator
Assign OP rights via the ops.json file
Open ops.json
Connect to your server via SFTP and open the fileops.json.Add the entry
Insert the following entry within the square brackets[]:{ "uuid": "<playeruuid>", "name": "<game name>", "level": 4, "bypassesPlayerLimit": false }{ "uuid": "<playeruuid>", "name": "<game name>", "level": 4, "bypassesPlayerLimit": false }Restart the server
Save the changes and restart the server.
Info
If you want to enter several players, separate the entries with a comma ,:
{
"uuid": "<player1uuid>",
"name": "<player1name>",
"level": 4,
"bypassesPlayerLimit": false
},
{
"uuid": "<player2uuid>",
"name": "<player2name>",
"level": 4,
"bypassesPlayerLimit": false
}{
"uuid": "<player1uuid>",
"name": "<player1name>",
"level": 4,
"bypassesPlayerLimit": false
},
{
"uuid": "<player2uuid>",
"name": "<player2name>",
"level": 4,
"bypassesPlayerLimit": false
}OP Levels
| Level | Description |
|---|---|
| 1 | Can change protected spawn areas |
| 2 | Can edit command blocks and use basic commands (except level 3-4 commands) |
| 3 | May execute sanctions such as /kick, /ban etc. |
| 4 | Has full administrative control, including server commands such as /stop |
Info
bypassesPlayerLimit allows the player to join the server even if the player limit has been reached.
Tip
You can find out the UUID of a player e.g. at NameMC on the basis of his name.