Deny a specific permission node whilst having all permissions?

Discussion in 'Bukkit Help' started by IAnon, Jul 26, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    IAnon

    Is it possible, or is there a plugin, to deny a specific permission whilst you have all permissions with the '*' node? For instance if I have all permissions, and have Essentials can I deny the "essentials.vanish.effect" node but still contain all the other permissions?
     
  2. Offline

    Bobcat00

    With Group Manager, you would simply add the permission with a "-" in front:
    -essentials.vanish.effect

    (Note that in the file, you'll have two "-" on the line.)
     
  3. Offline

    obscurehero

    I don't *think* so. If I remember correctly, using the '*' is bad practice. Just grant permissions.
     
  4. Offline

    IAnon

    Does this work with PermissionsEX?
     
  5. Offline

    obscurehero


    IAnon - Like I said I don't think so. I think it relates to the hacky way that PEX implements the '*' permissions.
     
  6. Offline

    Bobcat00

    Check the PermissionsEX documentation.

    One more reason to use Group Manager, instead.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  7. Offline

    IAnon

    Alright thanks, I'll have to look at GroupManager, I'm just used to permex
     
  8. Offline

    Bobcat00

    I'm looking at the PermissionsEX documentation, and it looks like this can be done easily.

    They give this example:

    permissions:
    - -modifyworld.mobtarget.monster.creeper
    - modifyworld.*


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  9. Offline

    obscurehero

    right, well there's a difference between granting a '*' node that's a subnode. That is, its actually just a parent node declared (usually in the plugin.yml by the developer) so removing that node is relatively easy. Using the catch-all '*' node assigns nodes in a weird way if I remember correctly so I think using a '- -example.node' removal syntax usually won't work. I've tested this myself with prior versions of PEX.

    This is why I generally say people should NOT use PEX anymore. Yet, the VAST majority of permissions issues reported in this section are PEX issues... so apparently no one is listening.
     
Thread Status:
Not open for further replies.

Share This Page