Solved PermissionsEX world specific groups. help!

Discussion in 'Bukkit Help' started by bmw, Mar 1, 2012.

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

    bmw

    Hi, i have permissionsEX and multiverse and i need to have world specific groups. an example: if i join the server and spawn in world1 then get promoted to builder then go to world2 and spawn as a default. so i can be builder in world1 with permissions for that group and then be a mod in world2 and have permissions for that group. i really need help and any suggestions are appreciated. feel free to ask questions. :)
     
  2. Offline

    devilquak

    I don't know if you can do it exactly as you want, but you can give permissions to player in certain worlds that will mimic the behavior you want. Just give a group (or a player) certain perms and a prefix (assuming you're using PEX ChatManager) for the world(s) you want. So when they go in one world, they can use X commands and have a Mod prefix, while in another world they can only use X commands and get a Builder prefix (or no prefix at all, whatever you want). Like this, I assume:
    Code:
    users:
      devilquak:
        worlds:
          world1:
            prefix: '[Builder]'
            permissions:
              - builder.commands.*
          world2:
            prefix: '[Mod]'
            permissions:
              - mod.commands.*
    
    Hope I helped.
     
  3. Offline

    bmw

    yes there is a way to do what i want like that but i want to be able to do it from ingame promotion. so if i could set it up to where when someone joins in world1 the are a guest in rank ladder A and when the go to world2 the spawn as a guest in rank ladder B. im not sure if this is possible with permissionsEX. it is possible with groupmanager because it has separate group and user ymls for each world. i had other problems with groupmanager though so i cant switch back to that but Bpermissions might work? can anyone help?
     
  4. Offline

    codename_B

    bPermissions would work yes
     
  5. Offline

    bmw

    how? whenever i try to promote myself from the console it only works with one rank ladder
     
  6. Offline

    codename_B

    That's because if you don't specify a rank ladder (/promote playername) instead of (/promote playername ladder) it uses the default ladder.
     
  7. Offline

    bmw

    i use the /pex promote benbmw B it says "user are not part of that ladder" or some error mesage.
    am i doing something wrong?
     
  8. Offline

    devilquak

    You need to give each group ranks. /pex promote uses the rank promotion ladder, it's not a "set group" command. You have to assign each group a number between 1 and 1000. A higher number is a lower rank, but it doesn't matter what numbers you choose, as long as the numbering is in order from highest to lowest. When the /pex promote command is run, the target person is promoted to the next lowest number that has been given to a rank.

    For example, in my server, I have 5 groups: Default, Helper, Mod, Admin, Co-Owner, and Owner. Default has a rank of 999, since there is nothing that can go lower than that. Helper is 900, Mod is 500, Admin is 250, Co-Owner is 100, and Owner is rank 1. I could make those numbers anything I want as long as they range from highest to lowest. Also be sure to give your default group the default setting, so PEX knows to put first time users in that group.

    Code:
    groups:
      nameofgroup (mine is default):
        default: true
        options:
          rank: '999'
    
    You have to use the /pex user YourPlayerName group set NameOfGroup command to promote yourself to the rank you want at first though. After that, assuming you have set a default group and group ranks, /pex promote should work for everyone else.
     
  9. Offline

    bmw

    yes i have the ranks set up (1000 thru 0) here is my permissions.yml
    Code:
    groups:
        default:
            inheritance: null
            permissions:
            - -bukkit.command.kill
            - essentials.help
            - modifyworld.chat
            - essentials.protect.pvp
            - essentials.helpop
            - essentials.list
            - essentials.motd
            - essentials.rules
            - essentials.spawn
            default: true
            options:
                rank: '1000'
                rank-ladder: A
            prefix: '&e[guest]'
        traveler:
            inheritance: null
            permissions:
            - -bukkit.command.kill
            - essentials.help
            - modifyworld.chat
            - essentials.protect.pvp
            - essentials.helpop
            - essentials.list
            - essentials.motd
            - essentials.rules
            - essentials.spawn
            default: true
            options:
                rank: '1000'
                rank-ladder: B
            prefix: '&e[Traveler]'
        owner:
            permissions:
            - '*'
            options:
                rank: '100'
                rank-ladder: A
            prefix: null
            worlds:
                roleplay:
                    prefix: '&1[OWNER]'
        member:
            options:
                rank: '900'
                rank-ladder: A
            prefix: '&7[Member]'
            inheritance:
            - default
            permissions:
            - modifyworld.*
            - essentials.afk
            - essentials.back
            - essentials.back.ondeath
            - essentials.balance
            - essentials.compass
            - essentials.depth
            - essentials.home
            - essentials.mail
            - essentials.mail.send
            - essentials.me
            - essentials.msg
            - essentials.nick
            - essentials.pay
            - essentials.portal
            - essentials.powertool
            - essentials.protect
            - essentials.sethome
            - essentials.signs.create.protection
            - essentials.signs.use.*
            - essentials.signs.break.protection
            - essentials.suicide
            - essentials.tpa
            - essentials.tpaccept
            - essentials.tpahere
            - essentials.tpdeny
            - essentials.warp
            - essentials.warp.list
            - essentials.worth
            - mobarena.arenas.*
            - mobarena.classes.*
            - mobarena.use.*
            - multiverse.portal.access.*
            - multiverse.access.*
            - multiverse.core.tp.self
            - multiverse.core.spawn.self
        citizen:
            options:
                rank: '900'
                rank-ladder: B
            prefix: '&7[Citizen]'
            inheritance:
            - default
            permissions:
            - modifyworld.*
            - essentials.afk
            - essentials.back
            - essentials.back.ondeath
            - essentials.balance
            - essentials.compass
            - essentials.depth
            - essentials.home
            - essentials.mail
            - essentials.mail.send
            - essentials.me
            - essentials.msg
            - essentials.nick
            - essentials.pay
            - essentials.portal
            - essentials.powertool
            - essentials.protect
            - essentials.sethome
            - essentials.signs.create.protection
            - essentials.signs.use.*
            - essentials.signs.break.protection
            - essentials.suicide
            - essentials.tpa
            - essentials.tpaccept
            - essentials.tpahere
            - essentials.tpdeny
            - essentials.warp
            - essentials.warp.list
            - essentials.worth
            - mobarena.arenas.*
            - mobarena.classes.*
            - mobarena.use.*
            - multiverse.portal.access.*
            - multiverse.access.*
            - multiverse.core.tp.self
            - multiverse.core.spawn.self
        builder:
            options:
                rank: '800'
                rank-ladder: A
            prefix: '&2[Builder]'
            inheritance:
            - member
            permissions:
            - essentials.afk
            - essentials.back
            - essentials.back.ondeath
            - essentials.balance
            - essentials.chat.shout
            - essentials.compass
            - essentials.depth
            - essentials.home
            - essentials.kit
            - essentials.kit.tools
            - essentials.mail
            - essentials.mail.send
            - essentials.me
            - essentials.msg
            - essentials.nick
            - essentials.pay
            - essentials.portal
            - essentials.powertool
            - essentials.protect
            - essentials.sethome
            - essentials.signs.break.disposal
            - essentials.signs.break.mail
            - essentials.signs.break.protection
            - essentials.signs.break.trade
            - essentials.signs.create.disposal
            - essentials.signs.create.mail
            - essentials.signs.create.protection
            - essentials.signs.create.trade
            - essentials.signs.use.*
            - essentials.suicide
            - essentials.tpa
            - essentials.tpaccept
            - essentials.tpahere
            - essentials.tpdeny
            - essentials.warp
            - essentials.warp.list
            - essentials.worth
            - mobarena.arenas.*
            - mobarena.classes.*
            - mobarena.use.*
        builder+:
            options:
                rank: '700'
                rank-ladder: A
            prefix: '&3[Builder+]'
            inheritance:
            - builder
            permissions:
            - essentials.clearinventory
            - essentials.afk
            - essentials.back
            - essentials.back.ondeath
            - essentials.balance
            - essentials.chat.shout
            - essentials.compass
            - essentials.depth
            - essentials.give
            - essentials.home
            - essentials.item
            - essentials.kit
            - essentials.kit.tools
            - essentials.mail
            - essentials.mail.send
            - essentials.me
            - essentials.msg
            - essentials.nick
            - essentials.pay
            - essentials.portal
            - essentials.powertool
            - essentials.protect
            - essentials.sethome
            - essentials.signs.break.disposal
            - essentials.signs.break.mail
            - essentials.signs.break.protection
            - essentials.signs.break.trade
            - essentials.signs.create.disposal
            - essentials.signs.create.mail
            - essentials.signs.create.protection
            - essentials.signs.create.trade
            - essentials.signs.use.*
            - essentials.suicide
            - essentials.tpa
            - essentials.tpaccept
            - essentials.tpahere
            - essentials.tpdeny
            - essentials.warp
            - essentials.warp.list
            - essentials.worth
            - multiverse.teleport.*
        architect:
            options:
                rank: '600'
                rank-ladder: A
            prefix: '&8[Architect]'
            inheritance:
            - builder+
            permissions:
            - autogamemode.command.switch
            - essentials.tp
            - worldedit.history.undo
            - worldedit.history.redo
            - worldedit.navigation.unstuck
            - worldedit.navigation.ascend
            - worldedit.navigation.descend
            - worldedit.navigation.thru
            - worldedit.navigation.up
            - worldedit.region.replace
            - worldedit.region.stack
            - worldedit.region.set
            - worldedit.region.naturalize
            - worldedit.selection.*
            - worldedit.selection.pos
            - worldedit.selection.hpos
            - worldedit.wand
            - worldedit.superpickaxe
            - worldedit.tool
            - worldedit.tool.tree
            - worldedit.drain
            - worldedit.snow
            - worldedit.thaw
            - worldedit.green
            - worldedit.extinguish
            - essentials.smite
            - -autogamemode.login.survival
            - -autogamemode.login.creative
            - -autogamemode.changeworld.survival
            - -autogamemode.changeworld.creative
            - multiverse.core.spawn.*
        moderator:
            options:
                rank: '500'
                rank-ladder: A
            prefix: '&5[Moderator]'
            inheritance:
            - architect
            permissions:
            - permissions.manage.worlds
            - permissions.manage.users
            - permissions.manage.users.permissions
            - permissions.manage.groups.list
            - permissions.manage
            - essentials.broadcast
            - essentials.delwarp
            - essentials.eco
            - essentials.ext
            - essentials.getpos
            - essentials.give
            - essentials.item
            - essentials.jump
            - essentials.kick
            - essentials.kill
            - essentials.setwarp
            - essentials.signs.break.*
            - essentials.signs.create.*
            - essentials.spawner
            - essentials.thunder
            - essentials.time
            - essentials.time.world
            - essentials.togglejail
            - essentials.top
            - essentials.tp
            - essentials.tphere
            - essentials.tpo
            - essentials.tpohere
            - essentials.tppos
            - essentials.tptoggle
            - essentials.weather
            - essentials.whois
            - essentials.world
            - worldedit.*
            - bukkit.command.gamemode
            - autogamemode.command.switch
            - permissions.user.promote.default
            worlds: null
        donator:
            options:
                rank: '400'
                rank-ladder: A
            prefix: '&c[Donator]'
            inheritance:
            - moderator
        admin:
            options:
                rank: '300'
                rank-ladder: A
            prefix: '&4[Admin]'
            inheritance:
            - donator
            permissions:
            - permissions.manage.membership.member
            - permissions.manage.membership.default
            - permissions.manage.membership.builder
            - permissions.manage.membership.builder+
            - permissions.manage.membership.architect
            - permissions.manage.membership.moderator
            - permissions.manage.membership.donator
            - permissions.manage.membership.moderator
            - permissions.manage.groups.suffix.member
            - permissions.manage.groups.suffix.default
            - permissions.manage.groups.suffix.builder
            - permissions.manage.groups.suffix.builder+
            - permissions.manage.groups.suffix.architect
            - permissions.manage.groups.suffix.moderator
            - permissions.manage.groups.suffix.donator
            - permissions.manage.users.prefix.*
            - permissions.manage.users.suffix.*
            - permissions.manage.groups.prefix.*
            - permissions.manage.groups.suffix.*
        co-owner:
            prefix: '&6[CO-OWNER]'
            options:
                rank: '200'
                rank-ladder: A
            permssions:
            - '*'
            - -permissions.manage.membership.owner
            - permissions.manage.membership.admin
            - permissions.manage.groups.*
            - permissions.manage.users.*
            inheritance:
            - admin
    users:
        Azzzzzzzzzz:
            group:
            - member
        parkeraph:
            group:
            - owner
        benbmw:
            group:
            - default
    
    but when i type /pex promote benbmw B it says "user are not in this ladder"
    i cant find anything wrong. any suggestions/help???
    [edit]: is there anything wrong with my permissions.yml??

    i canged my user to this
    Code:
        benbmw:
            worlds:
                world:
                    group:
                    - default
                roleplay:
                    group:
                    - traveler
    and the correct prefixes work in the correct worlds but i still cant promote only in one world(or on rank ladder B) i realy need help!
     
    devilquak likes this.
  10. Offline

    devilquak

    Like I said, I don't think you can set groups per world. You give a group/player perms per world.

    Don't take my complete word for it though. You would do better to ask on the actual PEX plugin page or on the PEX BukkitDev page, not the general Bukkit help page.

    Edit: I think your syntax might be wrong. My permissions file seems to use two spaces per line/group, and you seem to be using four. Again, don't take my complete word for it.
     
  11. Offline

    bmw

    Ok problem fixed im not using per world groups, just perworld permissions and prefixes. thaks for all the help!
     
  12. Offline

    devilquak

    No problem, glad it worked out. Have fun.
     
  13. Offline

    andrewpo

    Yes, you can.
    Code:
    groups:
        member:
            inheritance: null
            prefix: "&bMember|&f"
            permissions:
            - essentials.suicide
            default: true
        admin:
            inheritance: member
            prefix: "&6Admin|&f"
            permissions:
            - essentials.ban
            default: true
     
    users:
        Notch:
            worlds:
                world_1:
                    group:
                    - member
                world_2:
                    group:
                    - admin
    And if you want to do that with a command sequence...
    Code:
    /pex group member create
    /pex group member prefix "&bMember|&f"
    /pex group member add essentials.suicide
    /pex default group member
     
    /pex group admin create member
    /pex group admin prefix "&6Admin|&f"
    /pex group admin add essentials.ban
     
    /pex user Notch group set member world_1
    /pex user Notch group set admin world_2
    
     
  14. Offline

    devilquak

    Ah, well I didn't know that. I assumed that since bmw had supposedly tried it, and said it didn't work, that it wasn't possible. Like I said, I didn't make PEX, so don't take my word for it. The more you know...
     
  15. Offline

    bmw

    yes i figured this out before but its a little too complex to do ingame promotion. i dont want to have to explain it to evryone who can promote. but thanks anyways!
     
Thread Status:
Not open for further replies.

Share This Page