Yaml error for plugins

Discussion in 'Spigot Plugin Help' started by TychoENTS, Jul 8, 2015.

  1. I recieve this eror: The eror I recieve is: (<unknown>): did not find expected '-' indicator while parsing a block collection at line 40 column 13
    This is my Yaml:
    food:
    type: SUPPLYCRATE
    buy:
    enabled: false
    cost: 0
    message:
    onOpen: '%prefix%You have opened an food crate!'
    broadcast: ''
    item:
    name: 'Food Chest'
    lore:
    - '%white%Mmmm, something smells good.'
    effect: #Developental Effects v0.1 If any bugs occur, disable this.
    onOpenFirework: true
    reward:
    minimumRewards: 2
    maximumRewards: 8
    rewards:
    - 'item:(apple 4),chance:(25),item:(bread 4)'
    - 'item:(bread 4),chance:(25),item:(pork 4)'
    - 'item:(372 4),chance:(25),item:(373 4)'
    - 'item:(364 4),chance:(25),item:(351:7 4)'
    Crate:
    type: MYSTERYCRATE
    buy:
    enabled: true
    cost: 5000
    message:
    onOpen: ' '
    broadcast: ' '
    item:
    item: DIAMOND_BLOCK
    name: 'Donator Crate'
    lore:
    - '%purple%An crate given only to the finest players.'
    effect:
    onOpenFirework: true
    reward:
    rewards:
    - 'cmd:(/give %player% diamond_sword 1 name:Apollo's_Dagger 16:2 20:1 21:1),chance:(1),broadcast:(' ')'
    - 'cmd:(/give %player% diamond_axe 1 name:Athena's_Blade 16:2 20:2),chance:(1),broadcast:(' ')'
    - 'cmd:(/give %player% bow 1 name:Cupid's_Bow 49:6),chance:(1),broadcast:(' ')'
    - 'cmd:(/give %player% golden_apple 8),chance:(3),broadcast:(%prefix%Diamond Sword!)'
    - 'cmd:(/give %player% diamond_pickaxe 1 name:Richie 32:5 33:1 34:1),chance:(2),broadcast:(' ')'
    - 'cmd:(/give %player% tnt 8),chance:(3),broadcast:(' ')'
    - 'cmd:(/give %player% diamond_pickaxe 1 32:1 35:1),chance:(2),broadcast:(%prefix%Diamond Pick!)'
    - 'cmd:(/give %player% obsidian 32 name:Oby),chance:(3),broadcast:(' ')'
    - 'cmd:(/give %player% experience_bottle 16),chance:(3),broadcast:(' ')'
    - 'cmd:(/eco give %player% 5000),chance:(3),broadcast:(' ')'
    - 'cmd:(/give %player% 277 1 name:pegasus's Shovel 32:4 33:1 34:3 35:3),chance:(1),broadcast:(' ')'
    - 'cmd:(/eco give %player% 10000),chance:(1),broadcast:(' ')'
    menu1:
    type: MENUCRATE
    buy:
    enabled: false
    cost: 0
    message:
    onOpen: '%prefix%You have opened an menu crate!'
    broadcast: ''
    item:
    item: bread
    name: 'Menu Crate #01'
    lore:
    - '[Common]'
    key:
    enabled: false
    reward:
    minimumRewards: 5
    maximumRewards: 10
    rewards:
    - 'item:(apple 4),chance:(25),item:(bread 4)'
    - 'item:(bread 4),chance:(25),item:(pork 4)'
    - 'item:(372 4),chance:(25),item:(373 4)'
    - 'item:(364 4),chance:(25),item:(351:7 4)'
    menu2:
    type: MENUCRATE
    buy:
    enabled: false
    cost: 0
    message:
    onOpen: ''
    broadcast: '%prefix%%player% has opened an menu crate!'
    item:
    item: diamond
    name: 'Menu Crate #02'
    lore:
    - '[Rare]'
    key:
    enabled: false
    reward:
    minimumRewards: 1
    maximumRewards: 2
    rewards:
    - 'cmd:(/give %player% diamond_sword 1 name:Donator_Sword 16:5 17:5 18:5 19:2 20:2 21:3),chance:(1),broadcast:(%prefix%Donator Sword!)'
    - 'cmd:(/give %player% diamond_sword 1 16:5 20:2),chance:(1.5),broadcast:(%prefix%Diamond Sword!)'
    - 'cmd:(/give %player% diamond_sword 1 17:3 21:2),chance:(2),broadcast:(%prefix%Diamond Sword!)'
    - 'cmd:(/give %player% diamond_sword 1 20:2 19:2),chance:(2),broadcast:(%prefix%Diamond Sword!)'
    - 'cmd:(/give %player% diamond_pickaxe 1 name:Donator_Pick 32:5 33:1 34:3 35:3),chance:(1),broadcast:(%prefix%Donator Pick!)'
    - 'cmd:(/give %player% diamond_pickaxe 1 32:3 35:1),chance:(2),broadcast:(%prefix%Diamond Pick!)'
    - 'cmd:(/give %player% diamond_pickaxe 1 32:1 35:1),chance:(2),broadcast:(%prefix%Diamond Pick!)'
    - 'cmd:(/give %player% diamond_axe 1 name:Donator_Axe 32:5 33:1 34:3 35:3),chance:(1),broadcast:(%prefix%Donator Axe!)'
    - 'cmd:(/give %player% diamond_axe 1 32:3 35:1),chance:(2),broadcast:(%prefix%Diamond Axe!)'
    - 'cmd:(/give %player% diamond_axe 1 32:1 35:1),chance:(2),broadcast:(%prefix%Diamond Axe!)'
    - 'cmd:(/give %player% 277 1 name:Donator_Shovel 32:5 33:1 34:3 35:3),chance:(1),broadcast:(%prefix%Donator Shovel!)'
    - 'cmd:(/give %player% 277 1 32:3 35:1),chance:(2),broadcast:(%prefix%Diamond Shovel!)'
    - 'cmd:(/give %player% 277 1 32:1 35:1),chance:(2),broadcast:(%prefix%Diamond Shovel!)'

    key1:
    type: KEYCRATE
    buy:
    enabled: false
    cost: 0
    message:
    onOpen: 'You have opened an key chest!'
    broadcast: ''
    key:
    item: 'tripwire_hook'
    name: 'Key #01'
    lore:
    - 'Go to the nearest key chest to open it and recieve an reward!'
    effect:
    onOpenFirework: true
    reward:
    minimumRewards: 1
    maximumRewards: 4
    rewards:
    - 'item:(apple 4),chance:(25),item:(bread 4)'
    - 'item:(bread 4),chance:(25),item:(pork 4)'
    - 'item:(372 4),chance:(25),item:(373 4)'
    - 'item:(364 4),chance:(25),item:(351:7 4)'
    key2:
    type: KEYCRATE
    buy:
    enabled: false
    cost: 0
    message:
    onOpen: ''
    broadcast: '%prefix%%player% has opened an key crate and recieved...'
    key:
    item: 'diamond'
    name: 'Key #02'
    lore:
    - 'Go to the nearest key chest to open it and recieve an reward!'
    effect:
    onOpenFirework: true
    reward:
    minimumRewards: 1
    maximumRewards: 1
    rewards:
    - 'cmd:(/give %player% diamond_sword 1 name:Donator_Sword 16:5 17:5 18:5 19:2 20:2 21:3),chance:(1),broadcast:(%prefix%Donator Sword!)'
    - 'cmd:(/give %player% diamond_sword 1 16:5 20:2),chance:(1.5),broadcast:(%prefix%Diamond Sword!)'
    - 'cmd:(/give %player% diamond_sword 1 17:3 21:2),chance:(2),broadcast:(%prefix%Diamond Sword!)'
    - 'cmd:(/give %player% diamond_sword 1 20:2 19:2),chance:(2),broadcast:(%prefix%Diamond Sword!)'
    - 'cmd:(/give %player% diamond_pickaxe 1 name:Donator_Pick 32:5 33:1 34:3 35:3),chance:(1),broadcast:(%prefix%Donator Pick!)'
    - 'cmd:(/give %player% diamond_pickaxe 1 32:3 35:1),chance:(2),broadcast:(%prefix%Diamond Pick!)'
    - 'cmd:(/give %player% diamond_pickaxe 1 32:1 35:1),chance:(2),broadcast:(%prefix%Diamond Pick!)'
    - 'cmd:(/give %player% diamond_axe 1 name:Donator_Axe 32:5 33:1 34:3 35:3),chance:(1),broadcast:(%prefix%Donator Axe!)'
    - 'cmd:(/give %player% diamond_axe 1 32:3 35:1),chance:(2),broadcast:(%prefix%Diamond Axe!)'
    - 'cmd:(/give %player% diamond_axe 1 32:1 35:1),chance:(2),broadcast:(%prefix%Diamond Axe!)'
    - 'cmd:(/give %player% 277 1 name:Donator_Shovel 32:5 33:1 34:3 35:3),chance:(1),broadcast:(%prefix%Donator Shovel!)'
    - 'cmd:(/give %player% 277 1 32:3 35:1),chance:(2),broadcast:(%prefix%Diamond Shovel!)'
    - 'cmd:(/give %player% 277 1 32:1 35:1),chance:(2),broadcast:(%prefix%Diamond Shovel!)'