Solved Config Problem

Discussion in 'Spigot Plugin Development' started by Ring, Feb 14, 2016.

  1. So I'm getting an error I've never seen before, I looked it up- and I found nothing, so therefor Iw as hoping my fellow spigot members would be able to help me out! :)

    Code (Text):
    org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping



    removed

    removed

    Extra Info:

    *** NOTICE ***
    Please don't ask me if I parsed the config, yes. I did :)
    I tried parsing the config and it gives the same error, I tried fixing everything, haha. No. It wasn't working!

    It was working fine, then I all of a sudden re-exported it and the config wouldn't load, (I wasn't checking for any errors at the time), so I pasted the config into the file... it reset... so I ended up looking at console.. there there it was... the errors to my problems!
     
    #1 Ring, Feb 14, 2016
    Last edited: Feb 14, 2016
  2. Post the full yaml file.
     
  3. That is my full yaml file, the only config I have.
     
  4. Is there something wrong with the formatting? If so, what is it? Cause it seems normal...
     
  5. Not sure where you tried to parse it, but that's not valid yaml.

    Code (Text):
    admin: "&8[&6&l!&8] &7"
      format: "{player} &e{msg}"
    It can't be a mapping AND a value, it's one or the other:

    Code (Text):
    admin:
      format: "{player} &e{msg}"
    Code (Text):
    admin: "&8[&6&l!&8] &7"
    format: "{player} &e{msg}"
     
  6. I thought parsing it might show an invalid yaml structure that I didn't notice
     
  7. OH! I see! Since it's key: value... I can't use key for another value?