PermissionsEx help

Discussion in 'Bukkit Help' started by equinox80, Oct 14, 2011.

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

    equinox80

    Put simply, does this look right?

    Code:
    groups:
        default:
            default: true
            options:
                rank: '1000'
            permissions:
        Member:
            options:
                rank: '900'
            prefix: '&0(&8M&7ember&0)&7 '
            permissions:
            - iConomy.holdings
            - iConomy.help
            - modifyworld.*
        VIP:
            inheritance:
            - Member
            options:
                rank: '800'
            prefix: '&0(&eVIP&0)&7 '
            permissions:
            - -modifyworld.mobtarget.monster.creeper
            - modifyworld.*
        Moderator:
            options:
                rank: '100'
            prefix: '&0(&1Moderator&0)&7 '
            permissions:
            - -modifyworld.mobtarget.*
            - modifyworld.*
        Admins:
                worlds:
                    world2:
                        permissions:
                        - '*'
                    world_nether:
                        permissions:
                        - '*'
                    world:
                        permissions:
                        - '*'
                options:
                    rank: '0'
                permissions:
                - -modifyworld.mobtarget.*
                - ecoCreature.Creature.*
                - ecoCreature.DeathPenalty
                - ecoCreature.PVPReward
                - iConomy.holdings
                - iConomy.holdings.others
                - iConomy.help
                - iConomy.payment
                - iConomy.accounts.*
                - myworlds.*
                - '*'
            prefix: '&0(&4Admins&0)&7 '
    I can use default admin commands, but not MyWorld commands.

    Edit: Also, what is the difference between have - -modifyworld.* and -modifyworld.mobtarget.* (about the dashes, not the end).
     
  2. Offline

    Rwembee

    Maybe your admins section is indented too far from the look of it? Not sure if that matters. I think the PEX main thread has a .yml checker linked.

    All permissions in that style start with a "- ", note the space. It may be a way to detect a permission when the file is being parsed.
     
  3. Offline

    nidzzllll-

    The first - is just pex's way of representing 'I'm a node/Value/rank!'. Every node has to have one so pex knows that that line is a node and that it applies to the 'permissions:'/'option' or whatever above. The second - is for disabling/excluding that node. It is still a regular node so it needs the first - too.

    What did you mean by 'use default admin commands'? You can use Admin commands with default rank? :3 The basics look ok but I'm not sure if you need to set a rank-ladder: for those ranks with a 'rank:' value.
    About your problem, I think I can't help you there either ;<. Tried what happens when you add inheritances for your mod/admin rank? Does it matter which world you're in? How does your User entry look like?
     
  4. Offline

    equinox80

    This is the full thing:

    Code:
    groups:
        default:
            default: true
            options:
                rank: '1000'
            permissions:
        Member:
            options:
                rank: '900'
            prefix: '&0(&8M&7ember&0)&7 '
            permissions:
            - iConomy.holdings
            - iConomy.help
            - modifyworld.*
        VIP:
            inheritance:
            - Member
            options:
                rank: '800'
            prefix: '&0(&eVIP&0)&7 '
            permissions:
            - -modifyworld.mobtarget.monster.creeper
            - modifyworld.*
        Moderator:
            options:
                rank: '100'
            prefix: '&0(&1Moderator&0)&7 '
            permissions:
            - -modifyworld.mobtarget.*
            - modifyworld.*
        Admins:
                worlds:
                    world2:
                        permissions:
                        - '*'
                    world_nether:
                        permissions:
                        - '*'
                    world:
                        permissions:
                        - '*'
                options:
                    rank: '0'
                permissions:
                - -modifyworld.mobtarget.*
                - ecoCreature.Creature.*
                - ecoCreature.DeathPenalty
                - ecoCreature.PVPReward
                - iConomy.holdings
                - iConomy.holdings.others
                - iConomy.help
                - iConomy.payment
                - iConomy.accounts.*
                - myworlds.*
                - '*'
            prefix: '&0(&4Admins&0)&7 '
    users:
        Azden777:
            group:
            - Admins
        Deejaded:
            group:
            - Member
    
        zaralisia:
            group:
            -Member
    
    no commands but things like /gamemode azden777 1 work. Nothing new, only original. They work in the console, bt "do not exist" in the client
     
  5. Offline

    Rwembee

    If you did what I said with the .yml checker, and fixed the indentation, it will parse correctly. Everything after admins and before users needs 4 spaces removed from the front.
    It is listed in the PEX thread.

    https://yaml-online-parser.appspot.com/
     
  6. Offline

    equinox80

    So like this?

    Code:
    groups:
        default:
            default: true
            options:
                rank: '1000'
            permissions:
        Member:
            options:
                rank: '900'
            prefix: '&0(&8M&7ember&0)&7 '
            permissions:
            - iConomy.holdings
            - iConomy.help
            - modifyworld.*
        VIP:
            inheritance:
            - Member
            options:
                rank: '800'
            prefix: '&0(&eVIP&0)&7 '
            permissions:
            - modifyworld.mobtarget.monster.creeper
            - modifyworld.*
        Moderator:
            options:
                rank: '100'
            prefix: '&0(&1Moderator&0)&7 '
            permissions:
            - modifyworld.mobtarget.*
            - modifyworld.*
        Admins:
            worlds:
                world2:
                    permissions:
                    - '*'
                world_nether:
                    permissions:
                    - '*'
                world:
                    permissions:
                    - '*'
            options:
                rank: '0'
            permissions:
            - modifyworld.mobtarget.*
            - ecoCreature.Creature.*
            - ecoCreature.DeathPenalty
            - ecoCreature.PVPReward
            - iConomy.holdings
            - iConomy.holdings.others
            - iConomy.help
            - iConomy.payment
            - iConomy.accounts.*
            - myworlds.*
            - '*'
            prefix: '&0(&4Admins&0)&7 '
    users:
        Azden777:
            group:
            - Admins
        Deejaded:
            group:
            - Member
        zaralisia:
            group:
            - Member
    Personally still doesn't work.... I can use original commands ingame like /gamemode azden777 1

    However: I cannot use /pex or /money or anything of the sort.

    Please help, I would really appretiate it, is there somethin I am missing? I will add my server log too in a bit.

    Edit: Also I am using SimpleServer with craftbukkit 1317.

    O.O ..... I think I got it! It was SIMPLESERVER! Simple my @$$...... removing it and never touching it again. THanks guys.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
Thread Status:
Not open for further replies.

Share This Page