while parsing a block mapping & expected <block end>, but found '<scalar>'

Discussion in 'Bukkit Help' started by TheGroom, Oct 28, 2016.

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

    TheGroom

    Hi !

    I want to use the MessageAnnouncer plugin on my server, but I got errors after I modified the messages, and they don't show up.

    I used YAML Parser to find the errors, and here is what it gives me :

    Code:
    ERROR:
    
    while parsing a block mapping
      in "<unicode string>", line 15, column 3:
          candidatures:
          ^
    expected <block end>, but found '<scalar>'
      in "<unicode string>", line 16, column 17:
          - '{"text":"N'oubliez pas d'utiliser notre Res ...
                        ^
    And here is the entire config.yml file :

    Code:
    # MessageAnnouncer v1.6.2 Main configuration
    announcer_enabled: true
    announcer_random: false
    announce_interval: 300
    sound:
      enabled: false
      sound_name: NOTE_PLING
      volume: 10
      pitch: 1
    interval_announcement_list:
    - candidatures
    - discord
    - resourcepack
    announcements:
      candidatures:
      - '{"text":"Les candidatures sont ouvertes ! Contactez un Manager sur notre Discord ou sur notre page Facebook.","color":"blue","bold":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Venez postuler !","color":"gold"}]}}}]'
      discord:
      - '{"text":"Envie de discuter avec nous ? Venez nous rejoindre sur notre Discord !","color":"blue","bold":true,"clickEvent":{"action":"open_url","value":"http://rickrolled.fr/"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Cliquez pour nous rejoindre !","color":"gold"}]}}}'
      resourcepack:
      - '{"text":"N'oubliez pas d'utiliser notre Resource Pack pour une meilleure expérience !","color":"blue","bold":true,"clickEvent":{"action":"open_url","value":"http://rickrolled.fr/"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Cliquez pour télécharger !","color":"gold"}]}}}'
    Can somebody please help me out with this ? I don't know how to code so I literraly have no idea what's wrong in that (I followed the tutorial wich is on the plugin page)

    Have a nice day ! :)
     
  2. Offline

    timtower Administrator Administrator Moderator

    @TheGroom Turn the inner single quotes in 2 single quotes. (actual 2 single quotes, not 1 double)
     
  3. Offline

    TheGroom

    @timtower I just tried it, but the errors are still here...
     
Thread Status:
Not open for further replies.

Share This Page