Block OP Commands

Discussion in 'Archived: Plugin Requests' started by tanveergt5, Nov 23, 2012.

  1. Offline

    tanveergt5

    Plugin category: Administrate
    Suggested name: BlockOP, OPBlock, OPCMDBlock, OPDisable etc anything suitable is fine

    What I want:

    A plugin that stops OP's from using "/i" "/give" or "//set" or any world edit commands basically.
    Their will be a YAML file generated, and it has a config which will allow you to block what ever commands you want for OP's.
    This plugin weakens OP basically I need this for me "Super Admins" but they must be OP to just be able to use every other plugin without hassle.

    Ideas for commands: No commands needed for this plugin.


    Ideas for permissions:
    Op.disable.give -Stops OP's so they cant give out items with "/i" or "/give"
    op.disable.* blocks any command that is in the config file.
    When I'd like it by: As soon as possible
     
  2. Offline

    LaxWasHere

    Negate the permission instead.
     
  3. Offline

    leiger

    You could just make your Super Admins be a separate rank, and explicitly give them all of the permissions that you do want them to have (instead of just assigning *.* or giving op). This would be the best option, as you know exactly what commands they have access to. It'd be a command whitelist, rather than a blacklist.

    Alternatively, you could look into something like CommandHelper (or possibly Skript / Commander) to block specific commands from being used.

    Edit: And LaxWasHere says the obvious thing that I didn't even consider :) Yes... negating the permission would be the easiest option to implement.
     
  4. Offline

    Pr0Failure

    Or if you're really lazy just give the wildcard permissions but if you're using PEX or something you can negate permissions using
    Code:
    permissions:
    - -worldedit.select
    - worldedit.*
    which will give all the permissions from WE except the select, you have to negate the permissions before the plugin.* though otherwise it won't work.
     
  5. Offline

    tanveergt5

    ok I'll try the negate thing seems ok, will it even block "OP's" from bypassing - -worldedit.select in pex?
     

Share This Page