[Bukkit guide] PermissionsEX (PEX)

Discussion in 'Bukkit Help' started by zipron, Feb 16, 2012.

?

Did this guide help youN

  1. Yes

    24 vote(s)
    51.1%
  2. A bit

    9 vote(s)
    19.1%
  3. No

    14 vote(s)
    29.8%
Thread Status:
Not open for further replies.
  1. Offline

    Gengarx33

    I restarted my permissions.yml, something kept spamming on my run.bat cmd file, and I couldn't see what the members of the server were writing. So I recreated it, but I need help. I'm trying to make a group (Member) be able to buy stuff from chest shop. BUT ONLY BUY. NOT CREATE. And another group called Shopowner be able to buy, sell, and create a chestshop. Any help? My permission.yml: (its hidden in the spoiler below).
    Show Spoiler

    Code:
    groups:
      guest:
        default: false
        permissions:
        - essentials.help
        - essentials.list
        - essentials.motd
        - essentials.rules
        - essentials.spawn
        inheritance: []
        options:
          rank: ‘2000’
        worlds: []
        prefix: '&e'
        suffix: ''
      member:
        default: true
        permissions:
        - essentials.afk
        - essentials.back
        - essentials.balance
        - essentials.compass
        - essentials.depth
        - essentials.home
        - essentials.ignore
        - essentials.mail
        - essentials.mail.send
        - essentials.me
        - essentials.msg
        - essentials.pay
        - essentials.ping
        - essentials.sethome
        - essentials.signs.use.*
        - essentials.signs.create.disposal
        - essentials.signs.create.mail
        - essentials.signs.create.trade
        - essentials.signs.break.disposal
        - essentials.signs.break.mail
        - essentials.signs.break.trade
        - essentials.suicide
        - essentials.time
        - essentials.tpa
        - essentials.tpaccept
        - essentials.tpahere
        - essentials.tpdeny
        - essentials.warp
        - essentials.warp.list
        - chestshop.*
        - chestshop.shop.*
        - -chestshop.shop.sell
        - -chestshop.shop.create
        - -chestshop.mod
        - -chestshop.admin
        - iconomy.help
        - iconomy.holdings
        - iconomy.payment
        - iconomy.accounts.create
        inheritance:
        - guest
        options:
          rank: ‘1000’
        worlds: []
        prefix: '&0[&2Member&0]&2 '
        suffix: ''
      shopowner:
        default: false
        permissions:
        - essentials.afk
        - essentials.back
        - essentials.balance
        - essentials.compass
        - essentials.depth
        - essentials.home
        - essentials.ignore
        - essentials.mail
        - essentials.mail.send
        - essentials.me
        - essentials.msg
        - essentials.pay
        - essentials.ping
        - essentials.sethome
        - essentials.signs.use.*
        - essentials.signs.create.disposal
        - essentials.signs.create.mail
        - essentials.signs.create.trade
        - essentials.signs.break.disposal
        - essentials.signs.break.mail
        - essentials.signs.break.trade
        - essentials.suicide
        - essentials.time
        - essentials.tpa
        - essentials.tpaccept
        - essentials.tpahere
        - essentials.tpdeny
        - essentials.warp
        - essentials.warp.list
        - chestshop.shop.*
        - iconomy.help
        - iconomy.holdings
        - iconomy.payment
        - iconomy.accounts.create
        inheritance:
        - guest
        options:
          rank: ‘1000’
        worlds: []
        prefix: '&0[&2Member&0]&2 '
        suffix: ''
    
     
  2. Offline

    zipron

    You did it a bit complicated: if you only want players to have one node (buy & sell) you don't have to give all nodes and deny everything but one, also, PEX reads from top to bottom, which means you have to deny first and than grant. Anyways:

    Code:
    shopowner:
        default: false
        permissions:
        - ...
        - ChestShop.shop.*
    member:
        default: false
        permissions:
        - ...
        - ChestShop.shop.buy
        - ChestShop.shop.sell
    
    That should work =)
     
  3. Offline

    HellSpawn777

    i am having a error with my pex file
    http://pastebin.com/q1kXGJpd
    also in the console it says
    2012-02-18 09:51:54 [SEVERE] java.lang.RuntimeException: Permissions manager is not accessable. Is the PermissionsEx plugin enabled?
    2012-02-18 09:51:54 [SEVERE] at ru.tehkode.permissions.bukkit.PermissionsEx.getPermissionManager(PermissionsEx.java:155)
    2012-02-18 09:51:54 [SEVERE] at ru.tehkode.permissions.bukkit.PermissionsEx.getUser(PermissionsEx.java:162)
    2012-02-18 09:51:54 [SEVERE] at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.performCheck(PermissiblePEX.java:123)
    2012-02-18 09:51:54 [SEVERE] at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.checkPermission(PermissiblePEX.java:109)
    2012-02-18 09:51:542012-02-18 09:51:54 [SEVERE] java.lang.RuntimeException: Permissions manager is not accessable. Is the PermissionsEx plugin enabled?
     
  4. Offline

    zipron

    that means that you're plugin is
    1) broken
    2) outdated

    download the latest version in the PEX thread =)
    zip
     
  5. Offline

    HellSpawn777

    ok i will download it which should i download stable or dev cuz my server is running 1.2.4
     
  6. Offline

    zipron

    you should check the forum thread what they say about it =)
    zip
     
  7. Offline

    HellSpawn777

    ok i did everything u sayed and this is what i got
    http://pastebin.com/RAZnkXYD
     
  8. Offline

    zipron

    could you give a list of all your plugins? are you sure you use the right permissions bridge? and no other permission plugins are enabled?

    zip =)
     
  9. Offline

    HellSpawn777

    worldedit worldguard mcmmo factions
     
  10. Offline

    zipron

    and you do have the right permissions bridge plugin? it is downlaoded if you download the PEX package =)
     
  11. Offline

    Gengarx33

    zipron I did that before, and I redid it, and the group Members is still able to create shops. The reason i dont want the members to create shops so the server doesn't end up with a bunch of chestshops all over the server (like valorcraft).
     
  12. Offline

    HDSh0TZz

    Sorry if i missed it in the guide but on my server i want to add world edit commands to a single player, how would i do that in game? is it /pex user [username] add permission worldedit
    ? Or is that completly wrong. And what is the world edits permission name?
     
  13. Offline

    ZeroZX4

    than if permission for create shop is

    - chestshop.shop.create

    than give them

    - -chestshop.shop.create
     
  14. Offline

    zipron

    WE nodes: http://wiki.sk89q.com/wiki/WorldEdit/Permissions
    a full list of PEX commands (I indeed didn't cover all of them in this guide): https://github.com/PEXPlugins/PermissionsEx/wiki/Commands

    zip =)
     
  15. Offline

    HDSh0TZz

  16. Offline

    Benoit87

    Hello !
    Scuse me, I've a little problem with the bukkit permission.yml.
    I've read a lot of thing, but I don't sucess to correct that ! :(

    This is my permission.yml file :
    Code:
    users:
        OrionPyro:
            subgroups: []
            permissions: []
            groups: admin
        lilian877:
            subgroups: []
            permissions: []
            groups: vip
        Tigerrrrr:
            subgroups: []
            permissions: []
            groups: ancien
        ultrawars:
            subgroups: []
            permissions: []
            groups: maire
        Benoit87:
            subgroups: []
            permissions: []
            groups: moderateur
        jojo87:
            subgroups: []
            permissions: []
            groups: ancien
        Ricte:
            subgroups: []
            permissions: []
            groups: ancien
        bigminigame:
            subgroups: []
            permissions: []
            groups: vip
        MX89:
            subgroups: []
            permissions: []
            groups: ancien
        Marc877:
            subgroups: []
            permissions: []
            groups: maire
        Trumy:
            subgroups: []
            permissions: []
            groups: ancien
        LRtoto:
            subgroups: []
            permissions: []
            groups: vip
        Herve87:
            subgroups: []
            permissions: []
            groups: ancien
        Carmin3:
            subgroups: []
            permissions: []
            groups: joueur
        alex877:
            subgroups: []
            permissions: []
            groups: joueur
        eliott87:
            subgroups: []
            permissions: []
            groups: joueur
        Udji:
            subgroups: []
            permissions: []
            groups: joueur
        Havrix:
            subgroups: []
            permissions: []
            groups: joueur
        Kamani:
            subgroups: []
            permissions: []
            groups: joueur
        T-Cronos:
            subgroups: []
            permissions: []
            groups: joueur
        toplolm:
            subgroups: []
            permissions: []
            groups: joueur
        victorlevasseur:
            subgroups: []
            permissions: []
            groups: joueur
        calimerau57:
            subgroups: []
            permissions: []
            groups: joueur
        Vaick:
            subgroups: []
            permissions: []
            groups: joueur
        Martin:
            subgroups: []
            permissions: []
            groups: joueur
        bewargo:
            subgroups: []
            permissions: []
            groups: joueur
        m_dark:
            subgroups: []
            permissions: []
            groups: ancien
        Poseidon38:
            subgroups: []
            permissions: []
            groups: joueur
        Kamicase:
            subgroups: []
            permissions: []
            groups: joueur
        Titay:
            subgroups: []
            permissions: []
            groups: joueur
        Maximeof87:
            subgroups: []
            permissions: []
            groups: joueur
        Icraft:
            subgroups: []
            permissions: []
            groups: joueur
    groups:
        visiteur:
            default: true
            infos:
                build: false
                prefix: ''
                suffix: '&f'
            permission:
            - -'*'
            - foo.bar
            - xauth.disallow.*
            - xauth.allow.player.chat
            - xauth.allow.player.move
            inheritance: []
        joueur:
            default: false
            infos:
                build: true
                prefix: '&2'
                suffix: '&f'
            permissions:
            - -'*'
            - foo.bar
            - lwc.protect
            - lwc.create
            - lwc.remove
            - lwc.unlock
            - lwc.modify
            - lwc.flag.*
            - iConomy.user
            - iConomy.payment
            - ChestShop.shop.*
            - towny.chat.town
            - towny.town.*
            - towny.wild.*
            - showcase.finite
            - showcase.exchange
            - showcase.buy.*
            - spawnbed.use
            - essentials.msg
            - essentials.help
            - essentials.afk
            - essentials.me
            - essentials.getpos
            - essentials.mail
            - essentials.mail.send
            - xauth.register
            inheritance: []
        ancien:
            default: false
            infos:
                build: true
                prefix: '&6'
                suffix: '&f'
            permissions: []
            inheritance:
            - joueur
        vip:
            default: false
            infos:
                build: true
                prefix: '&b'
                suffix: '&f'
            permissions: []
            inheritance:
            - ancien
        maire:
            default: false
            infos:
                build: true
                prefix: '&1'
                suffix: '&f'
            permissions:
            - showcase.basic
            inheritance:
            - ancien
        moderateur:
            default: false
            infos:
                build: true
                prefix: '&b'
                suffix: '&f'
            permissions:
            - superlog.*
            - lwc.*
            - worldedit.history.undo
            - worldedit.history.redo
            - worldedit.history.clear
            - worldedit.region.replace
            - worldedit.region.set
            - worldedit.region.naturalize
            - worldedit.selection.shift
            - worldedit.selection.expand
            - worldedit.selection.contract
            - worldedit.selection.pos
            - worldedit.selection.hpos
            - worldedit.wand
            - worldedit.tool.info
            - worldguard.locate
            - worldguard.region.define
            - worldguard.region.redefine.*
            - worldguard.region.info.*
            - worldguard.region.addowner.*
            - worldguard.region.removeowner.*
            - worldguard.region.removemember.*
            - worldguard.region.list
            - worldguard.region.flag.flags.*
            - worldguard.region.setpriority.*
            - worldguard.region.setparent.*
            - worldguard.region.remove.*
            - falsebook.*
            - towny.admin
            - towny.town.*
            - towny.nation.*
            - towny.top
            - showcase.*
            - essentials.ban
            - essentials.banip
            - essentials.broadcast
            - essentials.clearinventory
            - essentials.kick
            - essentials.mute
            - essentials.tempban
            - essentials.unban
            - essentials.unbanip
            - essentials.invsee
            - essentials.broadcast
            - essentials.warp
            - essentuaks.warp.list
            - blocklog.wand
            - herosneak.sneak
            - vanish.standard
            - ram.has
            - multiworld.*
            inheritance:
            - vip
        admin:
            default: false
            infos:
                build: true
                prefix: '&4'
                suffix: '&f'
            permissions:
            - '*'
            - worldedit.*
            - weatherRestrictions.*
            - falsebook.*
            - savearea
            - savenarea
            - iConomy.*
            - ChestShop.*
            - essentials.*
            - vanish.*
            - blocklog.*
            - showcase.*
            - showcase.basic
            - showcase.infinite
            inheritance: []
    
    When I start the server, It said me : "[WARNING] Permissions not found! All Operations are allowed!"

    Thanks for your help ! :) (and sorry if I've do errors in my sentences, I'm French :p)
     
  17. Offline

    zipron

    Bonjour, je voix une faux je crois dans tout les groupes:
    Code:
     
            infos:
                build: true
                prefix: '&4'
                suffix: '&f'
     
    
    ça n'existe pas dans PEX, c'est un properté pour essentials groupmanager, mais je ne croix pas que ça c'est le faux qui cause l'erreur. Les propertés son't ces:
    Code:
    default: false
    permissions: []
    inheritance: []
    options:
        rank: 1
        rank-ladder: 1
    prefix: ''
    suffix: ''
    worlds:
     
     
    
    build: true est un properté que essentials utilise, mais qui ne marche pas avec autres permission plugins. Avez vous sure que vous avez le version correct de PEX?

    excusez pour mon français, je suis belge xD
    So probably you better keep writing in english, I'm not the best french speaking person =D
    zip
     
  18. Offline

    Benoit87

    Ah, you speak a little french :p

    So, I've corrected my permission.yml, and the big error was I don't have PermissionsEx XD
    I thought It was the file permission.yml in the server's root x)
    Then, I've install it, and it work ! Thanks ! ;)

    PS : And, I've change in "users" : "groups" to "group", that works better :p

    Edit : However, since I've export my server 1.1 to 1.2, I've a lot of problems :/ (destruction of blocks when you do a right click, chunk don't loaded, etc...) It's not the subject, but if you have an idea x)
     
  19. Offline

    zipron

    be sure always to use up-to-date plugins, that is the only advice I can give =)
     
  20. Offline

    Benoit87

    Ok ! :) I've maybe keep some obsoletes plugins, I should remove them =o
    Thanks for your help ! :)
     
  21. Offline

    zipron

    good luck with your server =)
    zip
     
  22. Offline

    ZeroZX4

    i just think at the beginning u could put link to the pex it self haahah
     
  23. Offline

    Gengarx33

    ZeroZX4 It didn't work.
    Lol. PM me if you want to modify it yourself and check it out.
     
  24. Offline

    ZeroZX4

    paste it here

    http://pastebin.com/
     
  25. Offline

    Gengarx33

  26. Offline

    ZeroZX4

  27. Offline

    Gengarx33

    Lol, you basically gave the perms for members, I don't want them too. :confused:
     
  28. Offline

    ZeroZX4

    zip u gonna update it ? cause pex cut in half amount of spaces

    and now negative permission dont work like if i give my self

    - essentials.*
    - -essentials.warp

    i still can use warp
     
  29. Offline

    zipron

    Yes that's the issue with pex:
    1) you cannot clear any permissions in per-world permissions so is you give the main group essentials.* and the world group -essentials.warp they are still able to warp
    2) pex reads from top to bottom, so you should place the negative ones first, it's very annoying, but didn't I state that in the guide?

    zip
     
  30. Offline

    ZeroZX4

    well i never read ur guide :D

    and u was right negative permissions placed 1st really works Oo

    [​IMG]
     
Thread Status:
Not open for further replies.

Share This Page