A ShopGUIPlus error

Discussion in 'Spigot Plugin Help' started by Flapppie, Jul 16, 2018.

  1. In future you can use http://www.yamllint.com/ to validate your YAML.

    In this instance, your issue is here:
    Code (Text):

    shopMenuItems:
      # Has to be unique, value doesn't matter
      1:
     
    Section names can not start with a number. Change it to
    Code (Text):

    shopMenuItems:
      # Has to be unique, value doesn't matter
      whatever1:
     
    or
    Code (Text):

    shopMenuItems:
      # Has to be unique, value doesn't matter
      '1':
     
    Same for all other sections starting with a number.
     
  2. I don't really understand what you are trying to say here, Is there a problem with the actual config here?

    shops.yml spawners config: https://pastebin.com/6qnQttKm

    actual config.yml:
    10:
    item:
    material: SPAWNER
    quantity: 1
    damage: 0
    name: "&6&lSpawners"
    lore:
    - "&6&l(Purchase &e&lSpawners)"
    shop: "spawners"
    slot: 22
     
  3. That number 10 at the top, you can't have that there. The name of a section can not start with a number. So it has to be "somethinghere10:", or convert it to a string with '10':
     
  4. Well, it still shows.
    in 'string', line 513, column 3: 16.07 09:16:23 [Server] INFO whatever1: 16.07 09:16:23 [Server] INFO ^ 16.07 09:16:23 [Server] INFO expected <block end>, but found BlockMappingStart 16.07 09:16:23 [Server] INFO in 'string', line 586, column 7: 16.07 09:16:23 [Server] INFO material: SPAWNER
     
  5. Show your full config?
    What are you using to edit the config? Are you using spaces to tab?