Jump to content

Recommended Posts

Posted

Hi, I am using PermissionsEX, and I checked my permissions.yml in http://yaml-online-parser.appspot.com/, but I am getting an error that I don't know how to fix.

What I pasted in:

groups:

  Technician:

    default: true

    permissions:

    - modifyworld.*

    - modifyworld.*

    - essentials.balance

    - essentials.pay

    - essentials.sell

    - essentials.worth

    - essentials.afk

    - essentials.msg

    - essentials.motd

    - essentials.suicide

    - essentials.spawn

    - essentials.sethome

    - essentials.home

    - essentials.delhome

    - essentials.tpahere

    - essentials.tpaccept

    - essentials.warp

    - essentials.me

    - essentials.help

    - lwc.protect

    options:

      rank: '6'

    prefix: '&8[Technician]&8&f'

  Head_Technician:

    inheritance:

    - Technician

    options:

      rank: '5'

    prefix: '&b[builder]&f'

  VIP:

    inheritance:

    - builder

    options:

      rank: '4'

    prefix: '&9[VIP]&f

  Owner:

    options:

      rank: '1'

    permissions:

    - '*'

    prefix: '[&cOwner]&f'

users:

mikekrason:

  group:

  - Owner




What error I got:


ERROR:

 

while parsing a block mapping

  in "<unicode string>", line 2, column 3:

      Technician:

      ^

expected <block end>, but found '<block mapping start>'

  in "<unicode string>", line 28, column 4:

      Head_Technician:

      ^

Can someone help me fix this? I'm really bad with .yml files.

Posted

You where missing the end quote on the VIP Prefix and maybe something with the spacing.

Here's the fixed code:

groups:

    Technician:

        default: true

        permissions:

            - modifyworld.*

            - modifyworld.*

            - essentials.balance

            - essentials.pay

            - essentials.sell

            - essentials.worth

            - essentials.afk

            - essentials.msg

            - essentials.motd

            - essentials.suicide

            - essentials.spawn

            - essentials.sethome

            - essentials.home

            - essentials.delhome

            - essentials.tpahere

            - essentials.tpaccept

            - essentials.warp

            - essentials.me

            - essentials.help

            - lwc.protect

        options:

              rank: '6'

        prefix: '&8[Technician]&8&f'

    Head_Technician:

        inheritance:

            - Technician

        options:

            rank: '5'

        prefix: '&b[builder]&f'

    VIP:

        inheritance:

            - builder

        options:

            rank: '4'

        prefix: '&9[VIP]&f'

    Owner:

        options:

            rank: '1'

        permissions:

            - '*'

        prefix: '[&cOwner]&f'

users:

    mikekrason:

        group:

            - Owner

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...