Negative Permissions on permissionsex

Discussion in 'Bukkit Help' started by Lemonade1947, Jun 8, 2012.

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

    Lemonade1947

    Hellllllllo.

    although I pretty much no my way around permissionsex when setting up a factions server this afternoon i ran into some issues when trying to negate perms.

    you see, I don't want non-admins to be able to create factions.
    I thought there would be some way of stopping them in the config file, but no.

    A quick google search returned this:
    Show Spoiler

    Q. I don’t want all players to have the permissions which are currently granted by default. How can I change that?
    A.See our permissions further down the current page. Factions grants thefactions.kit.fullplayer permission kit by default. You will likely need to deny the individual permissions already granted which you don’t want those players to have. Your permission plugin of choice should provide a method to deny permissions, such as adding a “-” to the start of the permission (like “-factions.create”). Most permission plugins at this time don’t seem to allow denying parent->child / kit permissions (some don’t even allow granting them), so you may need to handle them individually.


    and so I set about denying users factions.kit.fullplayer and granting them factions.kit.halfplayer like this

    (it removed all the extra spaces, but their there)

    Member:
    default: true
    permissions:
    [snip]
    - -factions.kit.fullplayer
    - factions.kit.halfplayer

    but people still can. so im kinda at a loss.


    this is the full permissions file

    (it removed all the extra spaces, but their there)

    Show Spoiler

    groups:
    Member:
    default: true
    permissions:
    - modifyworld.*
    - essentials.tpa
    - essentials.sethome
    - essentials.rules
    - essentials.help
    - essentials.home
    - essentials.back
    - essentials.tpaccept
    - essentials.tpdeny
    - essentials.spawn
    - simplechestlock.lock
    - simplechestlock.command.trust
    - essentials.warp.*
    - essentials.warp
    - arg.user
    - -factions.kit.fullplayer
    options:
    rank: '300'
    Modmin:
    permissions:
    - essentials.gamemode
    prefix: '&9'
    inheritance:
    - Member
    - Mod
    Mod:
    permissions:
    - essentials.ban
    - essentials.kick
    - essentials.tp
    - simplechestlock.ignoreowner
    - logblock.tools.tool
    inheritance:
    - Member
    prefix: '&c'
    options:
    rank: '200'
    worlds:
    wilkay:
    permissions:
    - user
    jimisbuilding:
    permissions:
    - user
    uis:
    permissions:
    - user
    Admin:
    permissions:
    - '*'
    - -vanish.nochat
    - -vanish.effects.lightning
    - -vanish.effects.smoke
    - -modifyworld.*
    - -factions.create
    prefix: '&4'
    suffix: '&a'
    options:
    rank: '100'
    user: {}
    users:
    Lemonade1947:
    group:
    - Admin
    permissions:
    - -modify.world*
    Gold_Commando:
    group:
    - Admin
    darenboi34:
    group:
    - Admin
    TheFarshooter:
    group:
    - Modmin
    JimIsBuilding:
    group:
    - Modmin
    wilkay:
    group:
    - modmin
    permissions:
    willkay:
    group:
    - Admin
    - Modmin
    uisasith:
    group:
    - Modmin
    - Mod
    bigj615:
    group:
    - Admin


    thanks!
     
  2. Offline

    JWhy

    Code:
    permissions:
    - '*'
    - -vanish.nochat
    - -vanish.effects.lightning
    - -vanish.effects.smoke
    - -modifyworld.*
    - -factions.create
    --->
    Code:
    permissions:
    - -vanish.nochat
    - -vanish.effects.lightning
    - -vanish.effects.smoke
    - -modifyworld.*
    - -factions.create
    - '*'
    
    https://github.com/PEXPlugins/PermissionsEx/wiki/Basic-Permissions-Setup#wiki-file-backend-notes
     
  3. Offline

    Magi1053

    You dont need to subtract any permissions at all if its the default group. Permissions starts out on a clean slate, so default = Nothing.
     
  4. Offline

    Lemonade1947

    Thank you so bloody much. But I can't believe that I didn't realise that was the problem, now i feel like a n00b.
     
    JWhy likes this.
  5. Offline

    JWhy

    he already gave '*' at that point
     
  6. Offline

    Magi1053

    if you are going to subtract a node, doesnt it NEED to come before the node that gives it that power, such as the master node?
     
  7. Offline

    JWhy

    Yeah i think so... Somehow they describe it at the pex wiki
     
    Omnitv likes this.
  8. Offline

    spy85

    What if you put a ^before the permmision whats that do?
     
  9. Offline

    JWhy

    That's for bpermissions only
     
Thread Status:
Not open for further replies.

Share This Page