Op levels for staff

I've heard rumors that in 8.1+ you can set different op levels for different users. I have a new server, and I want to give staff members op level 3 so that they can kick and ban people if needed. Anything other than that is too much power, though. In the ops.json file I noticed that there's a level set for each op, but setting one to 3 doesn't seem to work, it's overwritten by the server.properties op level. ie. It stays listed as level: 3 for that user in ops.json but they're still able to use the /give and /tp command in game when server.properties is set to 4.
Does anyone know of a way to set custom op levels, or a good way to allow /kick and /ban for staff members using command blocks somehow?
This is a Vanilla server, v1.8.7. (Took a few months to get it built and configured / and is marketed as vanilla, so I don't want to switch to bukkit, etc version).
Best Answer
I believe that you can moderate this in the ops.json file of your server.
Go to your server's CraftBukkit, Spigot folder (or whatever its running). You should see the ops.json
file. My Minecraft username is mukulibukuli and the way to put an op into the file is like this:
[ { "uuid": "22bfd181-b46d-4772-86d1-fc13ac7a09b2", "name": "mukulibukuli", "level": 1, "bypassesPlayerLimit": false } ]
The lower the level the higher permissions you get (lowest level is 1). You can find your UUID on namemc.com, enter your Minecraft username to find it.
I really wish they could add a <level> part of the "/op name". If it could look like "/op name, level" that would be awesome!
Pictures about "Op levels for staff"



What are the different levels of OP?
Permission LevelsLevelHighest level of accessLevel 2Ops can use /clear, /difficulty, /effect, /gamemode, /gamerule, /give, /summon, /setblock and /tp, and can edit command blocks.Level 3Ops can use /ban, /deop, /kick, and /op.Level 4Ops can use /stop.1 more row•Mar 14, 2022What is the op permission level?
OP Level 1 Operators with this permission level cannot run any commands except for those that everyone can run.What does op level mean?
According to the Minecraft Wiki: Sets permission level for ops. Each level grants additional privileges over previous (lower levels) Ops can bypass spawn protection. No commands are assigned for this level.What are the op permission levels Minecraft server?
In Java Edition, permission level can be 0, 1, 2, 3, and 4. A command block or a minecart with command block has permission level of 2. The console of a server has permission level of 4. A function has permission level of 2 (but it can be changed in server.HOW OVERPOWER LEVELS WORK [Borderlands 2]
More answers regarding op levels for staff
Answer 2
I do not believe this is fully implemented currently. If you want to set an OP level, it will have to be server-wide, via the config file. You can always use the server console to execute commands.
Sorry for the inconvenience, but that's just how it is for now. You said you dont want to switch to bukkit, but if you do, I would highly suggest PermissionsEX for controlling OP levels. It's a fantastic plugin if you spend a little time setting it up.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Mikhail Nilov, iMin Technology, Ivan Samkov, fauxels