Yml error,yaml

XMLWordPrintable

    • Type: Bug
    • Resolution: Invalid
    • Priority: Major
    • Environment:

      1.12.2 bukkit/spigot

    • 1.12.2
    • Yes

      Hello,I just created the config file for a chestmod plugin but when I put it in the Yaml parser, it say this:
      Output

      ERROR:

      while parsing a block mapping
      in "<unicode string>", line 11, column 3:
      name: '&1Menu des maps'
      ^
      expected <block end>, but found '<anchor>'
      in "<unicode string>", line 29, column 24:
      open-action: 'tell: '&eVous avez ouvert le menu des m ...
      ^

      I don't understand,I tried to change but I didn't sucess.

      Thanks for the help.
      This is the yml file:

      ######################
      #+ +#

      1. MENU SETTINGS #
        #+ +#
        ######################

      menu-settings:

      1. REQUIRED
      2. Appears as the title of the menu.
        name: '&1Menu des maps'
      1. REQUIRED
      2. The number of rows in the menu.
        rows: 3
      1. OPTIONAL (you can remove this or set it to '')
      2. Bind multiple commands using ; (command: 'menu; m; me')
        command: 'maps'
      1. OPTIONAL
      2. How frequently the menu will be refreshed, in seconds.
      3. Useful if you have variables in items' descriptions.
        auto-refresh: 5
      1. OPTIONAL
      2. This command command will be executed when the menu is opened.
      3. Supports all the icon command types.
        open-action: 'tell: '&eVous avez ouvert le menu des maps.'
      1. OPTIONAL
      2. The menu will open only when right-clicking with a compass.
        open-with-item:
        id: compass
        left-click: false
        right-click: true

      ######################
      #+ +#

      1. ITEMS #
        #+ +#
        ######################

      tpworld:
      COMMAND: 'goto world'
      NAME: '&e/Accueil'
      LORE:

      • 'Te teleporte a l accueil'
      • '/goto world'
        ID: chest
        POSITION-X: 1
        POSITION-Y: 1

      tpvillagesable:
      COMMAND: 'warp village'
      NAME: '&e/Village du sable'
      LORE:

      • 'Visite le village'
      • '/warp village'
        ID: sandstone
        POSITION-X: 4
        POSITION-Y: 1

      tptempledudesert:
      COMMAND: 'warp temple-du-desert'
      NAME: '&e/Temple du desert'
      LORE:

      • 'Te teleporte au temple'
      • '/warp temple-du-desert'
        ID: sand
        POSITION-X: 5
        POSITION-Y: 1

      tparena:
      COMMAND: 'goto arena'
      NAME: '&e/Arene'
      LORE:

      • 'Teleporte toi a l arene'
      • 'Et pars au combat. /goto arena'
        ID: diamond_sword
        POSITION-X: 2
        POSITION-Y: 1

      tpshop:

      COMMAND: 'warp shop'
      NAME: '&e/ChestShop'
      LORE:

      • 'Va au shop'
      • 'Et fais des achats./warp shop'
        ID: chest
        POSITION-X: 3
        POSITION-Y: 1

      spawncmd:
      COMMAND: '/menu'
      NAME: '&e/Retour'
      LORE:

      • 'Retour'
      • 'retour'

      ID: chest
      POSITION-X: 1
      POSITION-Y: 1

      menu-close-no-commands-no-lore:
      NAME: '&6Ferme le menu'
      ID: redstone lamp
      LORE:

      • 'ferme'
      • 'le menu'
        POSITION-X: 9
        POSITION-Y: 3

            Assignee:
            Unassigned
            Reporter:
            Yann Moreau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: