PEX Only Default Rank Works

Discussion in 'Spigot Plugin Help' started by NateMan, May 13, 2015.

  1. Hey Guys

    I setup my permissions with PEX but I have one problem:

    Only Default gets commands

    If I make somebody moderator they get the prefix but NO commands (including inheritance), same for non-opped admin, donor, etc.

    Please help!
     
  2. Can you please post your permissions.yml into a pastebin and link it on here?
     
  3. Most of the times, mistakes like this happen when you use incorrect pex commands. For example using /pex user Mod add <permission> instead of using /pex group Mod add <permission> . Done it a few times myself, not really proud of it. If that's not the issue, you should always check your permissions.yml file for proper formatting. It uses YAML, which means that if it cannot parse through it, it will not read properly. Make sure you check it using an online YAML parser if you choose to edit it by hand.
     
  4. Yes, i used Multicraft editor, and I wrote it manually (because I am using towny). What should I do? I used http://yaml-online-parser.appspot.com/ to reparse my permissions.yml but it doesn't work!
     
  5. Here is the result:

    {
    "schema-version": 1,
    "users": {
    "de80e7ec-cba6-49c3-ae2e-90325d57a1e8": {
    "group": [
    "Owner"
    ],
    "options": {
    "name": "NateMan"
    },
    "permissions": [
    "permissions.*"
    ]
    },
    "2788886d-2060-484e-8820-2b5ecf434978": {
    "options": {
    "prefix": "&d[Veteran]",
    "name": "iDangerousMeow"
    }
    },
    "9555ce36-ede5-420d-84b5-451ab40cae0b": {
    "options": {
    "prefix": "&6[Helper]",
    "name": "BunnyRex"
    }
    },
    "b67d2222-0664-46e7-aa04-61bb2b64e148": {
    "group": [
    "Moderator"
    ],
    "options": {
    "name": "Joshua7123"
    }
    },
    "13994184-8502-42d8-84f5-4d8f11a178ca": {
    "group": [
    "Moderator"
    ],
    "options": {
    "name": "ExPlOeDDiApEr"
    }
    },
    "d2f3f643-c244-4305-9f36-89b62527d470": {
    "group": [
    "Admin"
    ],
    "options": {
    "name": "zimzamkam_2"
    }
    }
    },
    "groups": {
    "Default": {
    "options": {
    "default": true,
    "rank": "1000"
    },
    "permissions": [
    "modifyworld.*",
    "essentials.compass",
    "essentials.back",
    "essentials.backondeath",
    "essentials.back.ondeath",
    "essentials.tpahere",
    "essentials.tpaccept",
    "essentials.tpa",
    "essentials.help",
    "modifyworld.*",
    "lockette.user.create.*",
    "essentials.tpdeny",
    "essentials.delhome",
    "essentials.home",
    "essentials.sethome",
    "quickshop.use",
    "MasterPromote.sign.use.*",
    "essentials.warp",
    "mycommand.runas",
    "mycommand.item.set",
    "mycommand.block.set",
    "essentials.helpop",
    "mycommand.block.button.use",
    "mycommand.sign.use",
    "help",
    "buttonpromote.use",
    "spleef.arena.join",
    "BookShop.use",
    "essentials.rules",
    "essentials.signs.use.*",
    "essentials.ping",
    "SimplePoll.vote",
    "essentials.afk",
    "essentials.who",
    "essentials.tpaccept",
    "OpenInv.anychest",
    "Openinv.anychest",
    "essentials.back",
    "openinv.anychest",
    "lwc.protect",
    "essentials.pay",
    "essentials.balance",
    "essentials.money",
    "essentials.msg",
    "essentials.signs.warp.use",
    "essentials.spawn",
    "modifyworld.*",
    "essentials.default.*",
    "towny.command.plot.*",
    "towny.command.resident.*",
    "towny.town.*",
    "towny.command.town.*",
    "towny.command.nation.*",
    "towny.command.towny.*",
    "towny.command.townyworld.*",
    "towny.chat.general",
    "towny.wild.*",
    "towny.command.towny.map",
    "towny.command.towny.prices",
    "towny.command.towny.tree",
    "towny.command.towny.time",
    "towny.command.towny.universe",
    "towny.command.towny.version",
    "towny.command.towny.war",
    "towny.command.town.new",
    "towny.command.town.join",
    "towny.command.town.list",
    "towny.command.plot.perm",
    "towny.command.nation.list",
    "towny.town.resident",
    "towny.town.spawn.public",
    "towny.chat.general",
    "towny.command.resident.*",
    "towny.command.plot.claim",
    "towny.command.plot.unclaim",
    "towny.command.plot.forsale",
    "towny.command.plot.notforsale",
    "towny.command.plot.toggle.*",
    "towny.command.plot.set.perm",
    "towny.command.plot.set.reset",
    "towny.command.town.online",
    "towny.command.town.leave",
    "towny.command.town.deposit",
    "towny.town.spawn.town",
    "towny.chat.town",
    "towny.tax_exempt",
    "towny.command.towny.top",
    "towny.command.town.*",
    "towny.command.plot.*",
    "towny.claimed.owntown.*",
    "towny.command.nation.new"
    ]
    },
    "Owner": {
    "options": {
    "prefix": "&a[Owner] ",
    "permissions": [
    "permissions.*",
    "essentials.*",
    "gamemode.*"
    ],
    "rank": "1",
    "inheritance": [
    "Default",
    "VIP",
    "Moderator",
    "Admin"
    ]
    }
    },
    "VIP": {
    "options": {
    "prefix": "&e[VIP]",
    "rank": "900",
    "inheritance": [
    "Default"
    ]
    }
    },
    "Admin": {
    "options": {
    "prefix": "&c[Admin]",
    "rank": "100",
    "inheritance": [
    "Default",
    "VIP",
    "Moderator"
    ]
    }
    },
    "Moderator": {
    "worlds": {
    "&b[Mod]": {
    "options": {
    "prefix": "set"
    }
    }
    },
    "options": {
    "prefix": "&b[Mod]",
    "permissions": [
    "essentials.*",
    "essentials.gamemode.creative",
    "essentials.fly",
    "essentials.gamemode.survival",
    "fly.*"
    ],
    "rank": "800",
    "inheritance": [
    "Default",
    "VIP"
    ]
    }
    }
    }
    }
     
  6. Used a different parser, got this, still didn't work:
    ---
    groups:
    Admin:
    options:
    inheritance:
    - Default
    - VIP
    - Moderator
    prefix: "&c[Admin]"
    rank: "100"
    Default:
    options:
    default: true
    rank: "1000"
    permissions:
    - modifyworld.*
    - essentials.compass
    - essentials.back
    - essentials.backondeath
    - essentials.back.ondeath
    - essentials.tpahere
    - essentials.tpaccept
    - essentials.tpa
    - essentials.help
    - modifyworld.*
    - lockette.user.create.*
    - essentials.tpdeny
    - essentials.delhome
    - essentials.home
    - essentials.sethome
    - quickshop.use
    - MasterPromote.sign.use.*
    - essentials.warp
    - mycommand.runas
    - mycommand.item.set
    - mycommand.block.set
    - essentials.helpop
    - mycommand.block.button.use
    - mycommand.sign.use
    - help
    - buttonpromote.use
    - spleef.arena.join
    - BookShop.use
    - essentials.rules
    - essentials.signs.use.*
    - essentials.ping
    - SimplePoll.vote
    - essentials.afk
    - essentials.who
    - essentials.tpaccept
    - OpenInv.anychest
    - Openinv.anychest
    - essentials.back
    - openinv.anychest
    - lwc.protect
    - essentials.pay
    - essentials.balance
    - essentials.money
    - essentials.msg
    - essentials.signs.warp.use
    - essentials.spawn
    - modifyworld.*
    - essentials.default.*
    - towny.command.plot.*
    - towny.command.resident.*
    - towny.town.*
    - towny.command.town.*
    - towny.command.nation.*
    - towny.command.towny.*
    - towny.command.townyworld.*
    - towny.chat.general
    - towny.wild.*
    - towny.command.towny.map
    - towny.command.towny.prices
    - towny.command.towny.tree
    - towny.command.towny.time
    - towny.command.towny.universe
    - towny.command.towny.version
    - towny.command.towny.war
    - towny.command.town.new
    - towny.command.town.join
    - towny.command.town.list
    - towny.command.plot.perm
    - towny.command.nation.list
    - towny.town.resident
    - towny.town.spawn.public
    - towny.chat.general
    - towny.command.resident.*
    - towny.command.plot.claim
    - towny.command.plot.unclaim
    - towny.command.plot.forsale
    - towny.command.plot.notforsale
    - towny.command.plot.toggle.*
    - towny.command.plot.set.perm
    - towny.command.plot.set.reset
    - towny.command.town.online
    - towny.command.town.leave
    - towny.command.town.deposit
    - towny.town.spawn.town
    - towny.chat.town
    - towny.tax_exempt
    - towny.command.towny.top
    - towny.command.town.*
    - towny.command.plot.*
    - towny.claimed.owntown.*
    - towny.command.nation.new
    Moderator:
    options:
    inheritance:
    - Default
    - VIP
    permissions:
    - essentials.*
    - essentials.gamemode.creative
    - essentials.fly.*
    - essentials.gamemode.survival
    - fly.*
    prefix: "&b[Mod]"
    rank: "800"
    worlds:
    ? "&b[Mod]"
    :
    options:
    prefix: set
    Owner:
    options:
    inheritance:
    - Default
    - VIP
    - Moderator
    - Admin
    permissions:
    - permissions.*
    - essentials.*
    - gamemode.*
    prefix: "&a[Owner] "
    rank: "1"
    VIP:
    options:
    inheritance:
    - Default
    prefix: "&e[VIP]"
    rank: "900"
    schema-version: 1
    users:
    13994184-8502-42d8-84f5-4d8f11a178ca:
    group:
    - Moderator
    options:
    name: ExPlOeDDiApEr
    2788886d-2060-484e-8820-2b5ecf434978:
    options:
    name: iDangerousMeow
    prefix: "&d[Veteran]"
    9555ce36-ede5-420d-84b5-451ab40cae0b:
    options:
    name: BunnyRex
    prefix: "&6[Helper]"
    b67d2222-0664-46e7-aa04-61bb2b64e148:
    group:
    - Moderator
    options:
    name: Joshua7123
    d2f3f643-c244-4305-9f36-89b62527d470:
    group:
    - Admin
    options:
    name: zimzamkam_2
    de80e7ec-cba6-49c3-ae2e-90325d57a1e8:
    group:
    - Owner
    options:
    name: NateMan
    permissions:
    - permissions.*
     
  7. Please post it inside [code ]-tags (just press the icon on the left of the disc in the menu above textwindow and you'll get a list (quote, spoiler,code & strikesthough).

    Posting it as code keeps the formatting so we can see how it actually looks. (also you should post it in a spoiler, but code is most important)[/code]
     
  8. Also. You don't need Admin to inherit more than moderator and moderator only need to inherit VIP. Since VIP inherit default group, it will be added to any group above.
     
  9. OK, could that be the problem?
     
  10. Quick check.
    Your admin group should look something like this:
    Code (Text):
    groups:
      Admin:
        options:
          prefix: "&c[Admin]"
          rank: "100"
        inheritance:
        - Moderator
        permissions: []
    If you don't have any perms for it you need the permissions: []
    And you've placed prefix and inheritance all wrong...

    Observer that there is no TABs in it. If you use tabs you break it, it's all spaces.
     
  11. Seriously can't even figure out what you've done here:


    worlds:
    ? "&b[Mod]"
    :
    options:
    prefix: set

    I truly need either the full permissions file or that you post it as code.
     
  12. Can you please pastebin it or add it in code brackets? would be so much easier.
     
  13. And adding special perms for different worlds would look like this:
    Code (Text):
      Vip:
        inheritance:
        - Default
        permissions:
        - example.permission.one
        - example.permission.two
        options:
          prefix: '&e|6Survivalist&e|&r '
          rank: '500'
        worlds:
          world:
            permissions:
            - exempel.permission.world
          world2:
            permissions:
            - exempel.permission.world2
     
     
  14. Thank you @sketaful for adding that. I do not use pex for seperate worlds so sorry it wasn't in there before :)
     
  15. Noticed he had lines for different worlds so thought it be awful if he'd broke your nice template trying to add worlds ;P
     
    • Like Like x 1
  16. Can you fix it?
    Code (Text):
    groups:
      Admin:
        options:
          inheritance:
          - Default
          - VIP
          - Moderator
          prefix: '&c[Admin]'
          rank: '100'
      Default:
        options:
          default: true
          rank: '1000'
        permissions:
        - modifyworld.*
        - essentials.compass
        - essentials.back
        - essentials.backondeath
        - essentials.back.ondeath
        - essentials.tpahere
        - essentials.tpaccept
        - essentials.tpa
        - essentials.help
        - modifyworld.*
        - lockette.user.create.*
        - essentials.tpdeny
        - essentials.delhome
        - essentials.home
        - essentials.sethome
        - quickshop.use
        - MasterPromote.sign.use.*
        - essentials.warp
        - mycommand.runas
        - mycommand.item.set
        - mycommand.block.set
        - essentials.helpop
        - mycommand.block.button.use
        - mycommand.sign.use
        - help
        - buttonpromote.use
        - spleef.arena.join
        - BookShop.use
        - essentials.rules
        - essentials.signs.use.*
        - essentials.ping
        - SimplePoll.vote
        - essentials.afk
        - essentials.who
        - essentials.tpaccept
        - OpenInv.anychest
        - Openinv.anychest
        - essentials.back
        - openinv.anychest
        - lwc.protect
        - essentials.pay
        - essentials.balance
        - essentials.money
        - essentials.msg
        - essentials.signs.warp.use
        - essentials.spawn
        - modifyworld.*
        - essentials.default.*
        - towny.command.plot.*
        - towny.command.resident.*
        - towny.town.*
        - towny.command.town.*
        - towny.command.nation.*
        - towny.command.towny.*
        - towny.command.townyworld.*
        - towny.chat.general
        - towny.wild.*
        - towny.command.towny.map
        - towny.command.towny.prices
        - towny.command.towny.tree
        - towny.command.towny.time
        - towny.command.towny.universe
        - towny.command.towny.version
        - towny.command.towny.war
        - towny.command.town.new
        - towny.command.town.join
        - towny.command.town.list
        - towny.command.plot.perm
        - towny.command.nation.list
        - towny.town.resident
        - towny.town.spawn.public
        - towny.chat.general
        - towny.command.resident.*
        - towny.command.plot.claim
        - towny.command.plot.unclaim
        - towny.command.plot.forsale
        - towny.command.plot.notforsale
        - towny.command.plot.toggle.*
        - towny.command.plot.set.perm
        - towny.command.plot.set.reset
        - towny.command.town.online
        - towny.command.town.leave
        - towny.command.town.deposit
        - towny.town.spawn.town
        - towny.chat.town
        - towny.tax_exempt
        - towny.command.towny.top
        - towny.command.town.*
        - towny.command.plot.*
        - towny.claimed.owntown.*
        - towny.command.nation.new
      Moderator:
        options:
          inheritance:
          - Default
          - VIP
          permissions:
          - essentials.*
          - essentials.gamemode.creative
          - essentials.fly.*
          - essentials.gamemode.survival
          - fly.*
          prefix: '&b[Mod]'
          rank: '800'
        worlds:
          '&b[Mod]':
            options:
              prefix: set
      Owner:
        options:
          inheritance:
          - Default
          - VIP
          - Moderator
          - Admin
          permissions:
          - permissions.*
          - essentials.*
          - gamemode.*
          prefix: '&a[Owner] '
          rank: '1'
      VIP:
        options:
          inheritance:
          - Default
          prefix: '&e[VIP]'
          rank: '900'
    schema-version: 1
    users:
      13994184-8502-42d8-84f5-4d8f11a178ca:
        group:
        - Moderator
        options:
          name: ExPlOeDDiApEr
      2788886d-2060-484e-8820-2b5ecf434978:
        options:
          name: iDangerousMeow
          prefix: '&e[VIP]'
      9555ce36-ede5-420d-84b5-451ab40cae0b:
        options:
          name: BunnyRex
          prefix: '&6[Helper]'
      b67d2222-0664-46e7-aa04-61bb2b64e148:
        group:
        - Moderator
        options:
          name: Joshua7123
      d2f3f643-c244-4305-9f36-89b62527d470:
        group:
        - Admin
        options:
          name: zimzamkam_2
      de80e7ec-cba6-49c3-ae2e-90325d57a1e8:
        group:
        - Owner
        options:
          name: NateMan
        permissions:
        - permissions.*
     
     
  17. Yes I will fix this for you. Working on it as we speak.
     
  18. I have fixed your permissions, There were alot of unwanted spaces and permissions that needed fixed. You can find your permissions file here. Also there are some duplicated permissions so you may want to remove them, But if not the permissions should still work as I tested the permissions before giving them to you.
     
    • Winner Winner x 1