Permissions YAML File Errors

Discussion in 'Plugin Development' started by SecretPancake, May 1, 2011.

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

    SecretPancake

    Hey, I have been trying to get Permissions up and running on my server and whenever I edit the file I always get an error. I've tried YAML Parsers but it doesn't really tell me how to fix the error. Could someone plz tell me what its is i'm doing wrong and help me fix it?

    Code:
    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    #   If this file is for your default world (the one in server.properties) then you must
    #   leave copies blank.
    #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name.  So if it is level-name: world  then this should be world.yml and in the
    # plugins/Permissions directory(ie.plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
    #plugin:
    #     permissions:
    #         system: default
    #         copies:
    
    ##
    # AntiBuild is included with this.  To disable a group from being able to build then
    # set the build: flag to false (build: false).  If you want a group to be able to build
    # then set it to true.
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:" like so:
    #
    #   Example:
    #       inheritance:
    #           - Default
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'foo.bar'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'foo.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    #   If you give a group this permissions, do not have the group inherit any permissions
    #   from other groups.  Any users assigned to this group should NOT be given any additional
    #   permissions either.
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-foo.bar'
    ##
    #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    #   such as iChat or HeroChat in order for these to do anything.
         groups:
         guest:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
        members:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
               - 'essentials.home'
               - 'essentials.sethome'
               - 'essentials.warp'
               - 'essentials.warp.list'
               - 'essentials.msg'
               - 'essentials.afk'
               - 'essentials.rules'
               - 'essentials.motd'
               - 'essentials.list'
               - 'essentials.helpop'
               - 'essentials.ping'
               - 'essentials.protect'
               - 'essentials.protect.alerts'
               - 'essentials.spawn'
               - 'essentials.tpa'
               - 'essentials.help'
        mod:
             default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Member
            permissions:
                - 'essentials.ban'
               - 'essentials.banip'
               - 'vanish.vanish'
               - 'essentials.mute'
               - 'essentials.kick'
               - 'essentials.give'
               - 'essentials.item'
               - 'essentials.time'
               - 'essentials.god'
               - 'essentials.protect.admin'
               - 'essentials.clearinventory'
               - 'essentials.me
               - 'essentials.tp'
               - 'essentials.tpaccept'
               - 'essentials.tpdeny'
        admin:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
               - '*'
               - '-vanish.dont.hide'
               - '-essentials.essentials'
               - '-essentials.gc'
               - '-essentials.plugin'
               - '-essentials.antioch'
               - '-essentials.kickall'
               - '-essentials.unlimited'
               - '-essentials.setspawn'
        staff:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
               - '*'
               - '-essentials.essentials'
               - '-essentials.reloadall'
               - '-essentials.gc'
               - '-essentials.plugin'
               - '-essentials.setspawn'
        owner:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
      
    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
        SecretPancake:
            group: Owner
            info:
                prefix: 'Owner'
                suffix: ''
            permissions:
                - '*'
        thecriptKeeper:
            group: Staff
            info:
                prefix: 'Staff'
                suffix: ''
        kdude34:
            group: Staff
            info:
                prefix: 'Staff'
                suffix: ''
            permissions:
        MiesaNEIL:
            group: Admin
        liamsucks:
            group: Admin
        mattsucks:
            group: Admin
        killer74guns:
            group: Mod
     
  2. Offline

    Slaiest

    Code:
     mod:
             default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Member
            permissions:
                - 'essentials.ban'
               - 'essentials.banip'
               - 'vanish.vanish'
               - 'essentials.mute'
               - 'essentials.kick'
               - 'essentials.give'
               - 'essentials.item'
               - 'essentials.time'
               - 'essentials.god'
               - 'essentials.protect.admin'
               - 'essentials.clearinventory'
               - 'essentials.me
               - 'essentials.tp'
               - 'essentials.tpaccept'
               - 'essentials.tpdeny'
    one Too many spaces with your first command.
     
  3. Offline

    Randy Schouten

    That, and you shouldn't post this here in this section.
    This section is people who are developing plugins and need help with coding the actual thing :)

    http://yaml-online-parser.appspot.com/
    This might also be a good link to keep in mind.
    Just run your file through it and it will show you errors if they are there.
     
Thread Status:
Not open for further replies.

Share This Page