How do I disable commands for only 1 or 2 opped players (like worldedit and vanish)
I'm co-owner of a mc-server and the owner want's to make some of his friends op, so they have access to all commands. But is there a way to take some permissions away for an opped player, without doing it for all the opped players (like me)
Server version: Spigot 1.8.x (for version 1.7.x - 1.8.x)
We use permissionsex. so what do i have to enter to take /vanish away?
permissions:
- ?
- ?
Plugins: Essentials,pex,multiverse,silkspawners,worldedit,worldguard and some wands
Best Answer
The easiest way to do this would be to take op away from them, then give them the following permission nodes using /pex user <user> add <permission>:
First, give them *. This allows them to "use" any permission node.
Then, give them -essentials.vanish.*. This overrides the previous node, preventing them from using vanish.
Pictures about "How do I disable commands for only 1 or 2 opped players (like worldedit and vanish)"



How do I restrict some commands in Minecraft?
By default, server ops have access to all commands, including commands like /stop . You can change this by modifying the op-permission-level in your server. properties file. Setting it to 4 (which is the default) allows ops to use all commands.How do I give permission to single player commands in Minecraft?
If you're playing in single player, you might not have "cheats" allowed. To allow them, pause the game and select the option "Open to LAN". In this menu, select he option that says "Allow Cheats". This will only last until you close the LAN server.How do you stop people from using commands on your Minecraft server?
Only operators can see command output from players. And now, if you run your command through the command block, no one will be able to see the output in chat. However, the /give and /gamerule commands you did will still be visible in chat.How To Disable ANY Command On Your Minecraft Server
More answers regarding how do I disable commands for only 1 or 2 opped players (like worldedit and vanish)
Answer 2
You could try using a plugin such as Disable Commands Plus to give certain players specific permissions.
Answer 3
If you have PEX plugin installed, generally you can use the - in the command to take commands away. The best way to check that is to enable debug on a user (such as yourself) via the console:
/pex user <user> toggle debug
Then do the command in-game and see the checks that are being done to execute the command. If you have something like nocheatplus enabled it will spam the console, so disable those plugins first.
Then you can enter that command with a - into your permissions file BELOW the place where it is enabling the command for the user. You can also test a timed permission from the console with
/pex user <user> timed add <permission> [lifetime] [world]
Answer 4
If you are using McMyAdmin like me, you're in luck! First, go to Configuration and find the 'Export Permissions', then select 'PermissionsEX(supports Multiworld)'. Next, click Users & Groups from the left and from there you can configure every aspect of a group(chat color, chat prefix and suffix, color in chat, what commands it can use, what worlds can it access...) and the configuration will automatically be exported for PEX(or any other plugin you selected before).
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Andrew McMurtrie, Anas Aldyab, Kampus Production, Anas Aldyab
