Plugin Help Group manager PLEASE HELP

Discussion in 'Plugin Help/Development/Requests' started by Jgreat11, Oct 1, 2015.

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

    Jgreat11

    Last edited: Oct 1, 2015
  2. Offline

    oceantheskatr

    Code:
    groups:
        Guest:
            default: false
            info:
                prefix: '&f'
                suffix:
                build: true
            inheritance:
            permissions:
                - 'essentials.msg'
    Let's take a look at this snippet, as the rest of the file essentially mimics it's errors. suffix: should either be removed since it's not being used, or should look like this: suffix: []

    Same with inheritance.

    Your permissions look like this:
    Code:
            permissions:
                - 'essentials.msg'
    But should look like this (notice how I've removed four spaces from infront of the permission node, aligning it with the permissions: text):
    Code:
            permissions:
            - 'essentials.msg'
    AND there shouldn't be apostrophes on either sides of the permissions.

    WRONG: - 'essentials.msg'
    RIGHT: - essentials.msg

    The only exception is for star permission:

    - '*'

    Hope this helped clear things up.
     
  3. Offline

    Jgreat11

    Omg thank you so much
     
  4. Offline

    oceantheskatr

    Let me know how it goes! :)
     
  5. Offline

    Boomer

    @oceantheskatr
    yaml is flexible (believe it or not, yes, in one case only) in that listed items have the option of being aligned or indented one level, either and both are acceptable.
     
  6. Offline

    oceantheskatr

  7. Offline

    Jgreat11

    What about the inheritance?
     
  8. Offline

    Boomer

    What about it in what way?

    As a list item, it should have a [] empty-set designator rather than be left hanging

    inheritance: []

    But, technically it is parseable without the empty-set characters, just easier to read and avoid accidentally making a mistake.
    inheritance may also be simply excluded from the group definition since it is empty, it will be assumed to be empty if its not found.
     
  9. Offline

    Jgreat11

    The spacing, is that okay or no?
     
  10. Offline

    Boomer

    All of your spacing is fine, and as i mentioned to Ocean.. lists are the one flexible point with YAML, they can be aligned with the block definer or indented an extra level and both are treated equally.

    Actually, I withdraw that. Loooked at wrong thing. Your inheritance lists are indented too far and not properly, as they are not the same multiples of indentation as all other indent-levels are.
    Either line up the hyphen for your inheritances to be in line with the first i in inheritance, or indent the hyphen 4 spaces, and they'll line up with the hyphens of the permissions list hyphens..

    Your entire document from top to bottom should only have a few indentation levels, and all similar-parts of the document will be aligned similarly - all groupnames: indented the exact same amount, every permission node indented the same amount...

    (Dont hold me to that last point if you do fancy things like per-world permission definitions, but for normal uses, it will always be exactly the same..)
     
  11. Offline

    Jgreat11

    Thank you, I will be testing this soon
     
  12. Offline

    Jgreat11

  13. @Jgreat11 Permissions is empty, 2 spaces not 4, and remove the invalid permission (- essentials.warp.[warpname])
     
  14. Offline

    Jgreat11

    Last edited: Oct 12, 2015
  15. @Jgreat11 Yes. Press the space bar twice not 4 times.
     
  16. Offline

    Boomer

    The number of spaces doesn't matter - yml works with multiples of 1, 2, 3, 4, 5, 8 , 27 etc
    They just MUST be a fixed number of spaces PER LEVEL of indentation

    Why would you set your OWNER to be default rank?

    What exactly is the "doesn't work" with this file?
     
    Last edited: Oct 12, 2015
  17. Offline

    oceantheskatr

    First of all, why do you have users at the bottom? GroupManager has a separate file for users, so are you just putting them together in the paste, or are the users actually in the groups.yml? If they are actually in that file, remove them.

    If it's still not working, follow the steps below:

    First, restart your server (not reload)
    Once your server has fully restarted, get your latest.log from logs>latest.log.
    Post your latest.log on http://pastebin.com/ and link the URL here.
     
Thread Status:
Not open for further replies.

Share This Page