#idk wtf is going wrong

1 messages · Page 1 of 1 (latest)

blazing elk
#

i am creating an gui item then whenever a player doesnt have a permission it gets enchanted. but everytime i add it, the server says an internal error has occured but when i delete that part of the yml it works perfectly fine. its literally a copy and paste of another line. lemme link the yml

#
  'peasant':
    material: WOODEN_PICKAXE
    slot: 10
    display_name: 'Peasant'
    lore:
      - 'PERMS AND BONUS FOR Peasant'
    priority: 2
    left_click_commands:
      - '[sound] ENTITY_FIREWORK_ROCKET_BLAST'
      - '[console] lp user %player_name% promote baseranks'
      - '[message] &8[&6&lRANKS SHOP&8] &fYou have succesfully purchased Rank Peasant!'
      - '[takemoney] 100'
      - '[refresh]'
    left_click_requirement:
      requirements:
        balance_check:
          type: has money
          amount: 100
  'peasant_bought':
    material: EMERALD_BLOCK
    slot: 10
    display_name: 'Peasant Bought'
    lore:
      - 'You have already purchased this rank'
    priority: 1
    left_click_commands:
      - '[message] &8[&6&lRANKS SHOP&8] &fYou can't buy this rank twice.'
      - '[refresh]'
    view_requirement:
      requirements:
        shop_perm:
          type: has permission
          permission: group.peasant
  'adventurer':
    material: STONE
    slot: 11
    display_name: 'Adventurer'
    lore:
      - 'PERMS AND BONUS FOR Adventurer'
    priority: 1
    view_requirement:
      requirements:
        shop_perm:
          type: has permission
          permission: group.adventurer
    left_click_commands:
      - '[sound] ENTITY_FIREWORK_ROCKET_BLAST'
      - '[console] lp user %player_name% promote baseranks'
      - '[message] &8[&6&lRANKS SHOP&8] &fYou have succesfully purchased Rank Adventurer!'
      - '[takemoney] 100'
      - '[refresh]'
    left_click_requirement:
      requirements:
        balance_check:
          type: has money
          amount: 100
  'adventurer_no_perm':
    material: GRAY_STAINED_GLASS
    slot: 11
    display_name: 'No Permission'
    priority: 5
    lore:
      - '&4You are missing the &bPeasant'
      - '&4rank which is required to purchase &bAdventurer!'
      - '&fLeft click to close the menu.'
    left_click_commands:
      - '[sound] ENTITY_SNOW_GOLEM_DEATH'
      - '[refresh]'```
#

the peasant_bought one is the one messing everything up

#

i tried using type: "!has permission"

#

which also doesnt work

#

i originally had the material as wooden_pickaxe

#

with enchantments

nova meadow
#

You've missed a ' at line 27

#

should be can''t

blazing elk
nova meadow
blazing elk
#

oh ok cool

#

thanks bunches