PEX YAML Error

Discussion in 'Spigot Plugin Help' started by fehni, Aug 18, 2016.

  1. Hi. For some reason, the YAML parser is catching errors when I put my config in it. Permissions are not fully setup (irrelevant), but also not working currently as PEX will crash on startup. What am I doing wrong?

    Here is the error:
    Code (Text):
    ERROR:

    while parsing a block mapping
      in "<unicode string>", line 2, column 3:
          Acolyte:
          ^
    expected <block end>, but found '<block mapping start>'
      in "<unicode string>", line 83, column 5:
            inheritance:
            ^
    Here is my permissions.yml:
    Code (Text):
    groups:
      Acolyte:
        options:
          default: true
          prefix: '&fAcolyte&8 '
        permissions:
        - chestcommands.open.shop.yml
        - chestcommands.open.help.yml
        - chestcommands.open.rules.yml
        - essentials.kits.tools
        - essentials.kits.starter
        - chestcommands.open.kit.yml
        - factions.*
        - essentials.warps.shop
        - essentials.warps.wild
        - warp.gui
        - essentials.back
        - essentials.bacm
        - archoncrates.crate.use
        - cr.buy
        - cr.info
        - cr.menu
        - cr.crate
        - essentials.motd
        - essentials.kits.Member
        - essentials.rules
        - essentials.build
        - essentials.spawn
        - essentials.list
        - essentials.msg
        - essentials.ignore
        - essentials.balance
        - essentials.pay
        - essentials.balancetop
        - essentials.kit
        - essentials.kits.Food
        - essentials.sethome.multiple.Acolyte
        - mcmmo.Acolytes
        - essentials.home
        - essentials.seen
        - essentials.sethome
        - essentials.delhome
        - essentials.enderchest
        - essentials.warp.list
        - essentials.warp
        - essentials.tptoggle
        - essentials.tpa
        - essentials.tpaccept
        - modifyworld.*
        - essentials.realname
        - essentials.signs.use.sell
        - essentials.signs.use.buy
        - hidestream.hidejoin
        - hidestream.hidequit
        - hidestream.hidedeath
      Mage:
        options:
          prefix: '&eMage&8 '
        inheritance:
        - Acolyte
        permissions:
      Wizard:
        options:
          prefix: '&9Wizard&8 '
        inheritance:
        - Acolyte
        permissions:
      Sorcerer:
        options:
          prefix: '&dSorcerer&8 '
        inheritance:
        - Acolyte
        permissions:
      Warlock:
        options:
          prefix: '&2Warlock&8 '
        inheritance:
        - Acolyte
        permissions:
      Donor:
         options:
           prefix: '&8[&a&l>&8] '
        inheritance:
        - Acolyte
        permissions:
      Sponsor:
        options:
          prefix: '&8[&c&l>>&8] '
        inheritance:
        - Acolyte
        - Donor
        permissions:
      Veteran:
        options:
          prefix: '&8[&b&l>>>&8] '
        inheritance:
        - Acolyte
        - Donor
        - Sponsor
        permissions:
      Owner:
        options:
          prefix: '&6&lOWNER&r '
        permissions:
        - '*'
    schema-version: 1
    users:
      2b9342c4-dfb3-4560-b2fb-dd5970177cdb:
        group:
        - Owner
        options:
          name: Hemarii
      0dd98343-eca9-4586-9def-715a7c91f0ab:
        group:
        - Owner
        options:
          name: jazem
     
     
  2. I have noticed that you have mist some prior exeptions on your permissions for the other groups.
    Here is a LINK that will take you to the prefixed permissions look over the one you have made and take a look at this one alright.
    If it does not work make a post on here and i will get back to you as fast as possible.
     
  3. The pastebin config you gave me doesn't work.
     
  4. Try to look if you have placed some tabs in your code. YAML don't accept that.
    Also in the yaml parser you should have some extra info about the error.
     
  5. No tabs.
     
  6. You had one extra space in front of every line lol. This code works:
    Code (Text):

    groups:
      Acolyte:
      options:
      default: true
      prefix: '&fAcolyte&8 '
      permissions:
      - chestcommands.open.shop.yml
      - chestcommands.open.help.yml
      - chestcommands.open.rules.yml
      - essentials.kits.tools
      - essentials.kits.starter
      - chestcommands.open.kit.yml
      - factions.*
      - essentials.warps.shop
      - essentials.warps.wild
      - warp.gui
      - essentials.back
      - essentials.bacm
      - archoncrates.crate.use
      - cr.buy
      - cr.info
      - cr.menu
      - cr.crate
      - essentials.motd
      - essentials.kits.Member
      - essentials.rules
      - essentials.build
      - essentials.spawn
      - essentials.list
      - essentials.msg
      - essentials.ignore
      - essentials.balance
      - essentials.pay
      - essentials.balancetop
      - essentials.kit
      - essentials.kits.Food
      - essentials.sethome.multiple.Acolyte
      - mcmmo.Acolytes
      - essentials.home
      - essentials.seen
      - essentials.sethome
      - essentials.delhome
      - essentials.enderchest
      - essentials.warp.list
      - essentials.warp
      - essentials.tptoggle
      - essentials.tpa
      - essentials.tpaccept
      - modifyworld.*
      - essentials.realname
      - essentials.signs.use.sell
      - essentials.signs.use.buy
      - hidestream.hidejoin
      - hidestream.hidequit
      - hidestream.hidedeath
      Mage:
      options:
      prefix: '&eMage&8 '
      inheritance:
      - Acolyte
      permissions:
      Wizard:
      options:
      prefix: '&9Wizard&8 '
      inheritance:
      - Acolyte
      permissions:
      Sorcerer:
      options:
      prefix: '&dSorcerer&8 '
      inheritance:
      - Acolyte
      permissions:
      Warlock:
      options:
      prefix: '&2Warlock&8 '
      inheritance:
      - Acolyte
      permissions:
      Donor:
      options:
      prefix: '&8[&a&l>&8] '
      inheritance:
      - Acolyte
      permissions:
      Sponsor:
      options:
      prefix: '&8[&c&l>>&8] '
      inheritance:
      - Acolyte
      - Donor
      permissions:
      Veteran:
      options:
      prefix: '&8[&b&l>>>&8] '
      inheritance:
      - Acolyte
      - Donor
      - Sponsor
      permissions:
      Owner:
      options:
      prefix: '&6&lOWNER&r '
      permissions:
      - '*'
    schema-version: 1
    users:
      2b9342c4-dfb3-4560-b2fb-dd5970177cdb:
      group:
      - Owner
      options:
      name: Hemarii
      0dd98343-eca9-4586-9def-715a7c91f0ab:
      group:
      - Owner
      options:
      name: jazem
     
    Edit: When you copy it from here it doesn't work for some reason even when I keep pasting in the correct code. But I've found if you copy it from here you just need to remove the space in front of schema-version: and users:.
     
    #6 TheMCLegend14, Aug 18, 2016
    Last edited: Aug 18, 2016
    • Like Like x 1
  7. Here is the config that was meant to be on the pastebin CLICK ME
     
  8. Thanks, finally doesn't give me an error but chat formatting isn't working. Any ideas why?
     
  9. Probably could have been miss passing or to many spacing, i would recomend when doing something like to just Copy paste a group, and keep using that and edeting it till you get what you want.