#Click Requirement Help

1 messages · Page 1 of 1 (latest)

austere cave
#

Hey everyone, trying to make a store of some sorts but I can't seem to get the click requirement working

# Tags
  '2':
    material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWZkMjQwMDAwMmFkOWZiYmJkMDA2Njk0MWViNWIxYTM4NGFiOWIwZTQ4YTE3OGVlOTZlNGQxMjlhNTIwODY1NCJ9fX0=
    slot: 20
    priority: 2
    update: true
    hide_attributes:  true
    display_name: '&8[&6&lLegend&8]'
    click_requirement:
      requirements:
            type: '>='
            input: '%cmi_user_balance%'
            output: 250
      deny_commands:
      - '[message] &6Shop &8> &7You need &c2 XP-Levels (34 XP) &fto buy &c1 x Granite&f.'
    lore:
      - ''
      - '&7Click me to purchase!'
    click_commands:
      - '[console] cmi money take %player_name% 250'
      - '[console] lp user %player_name% permission set supremetags.tag.legend true'

It still allows me to click the item and purchase it, what am I doing wrong here?

#

I've tried the has money method as well with no luck

south juniper
#

Read the wiki, you are missing the requirement name