Assign OP rights in Minecraft Java Edition: In-game chat, server console & ops.json ​
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 to your Minecraft server.
Open the chat. By default with the
t
keyEnter 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 your dashboard and select your Minecraft Java Edition server.
Navigate to the server console under the menu item "Overview".
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 ops.json file ​
Open your dashboard and select your Minecraft Java Edition server.
Go to the file browser.
Open the file
ops.json
.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 }
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
}
Explanation of the OP levels
- Level 1: Can change protected spawn areas.
- Level 2: Can edit command blocks and use basic commands (except level 3-4 commands).
- Level 3: May execute sanctions such as
/kick
,/ban
etc. - Level 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.