#view requirements isnt working?

1 messages · Page 1 of 1 (latest)

solar acorn
#

why does this view requirement not working when the placeholder is 0.0?

      material: STORAGE_MINECART
      slot: 2
      priority: 3
      view_requirement:
        requirements:
          cooldown:
            type: 'javascript'
            expression: '%timr_per_10% == 0.0'
      display_name: '&aDaily Reward'
      lore:
        - ''
        - '&aRight Click &7to claim!'
      click_commands:
        - '[console] mcd add %player_name% test 100'
        - '[close]'
        - '[message] &2&l[!] &atest'
carmine glade
solar acorn
carmine glade
#

%timr_per_10% is this placeholder from another plugin or from deluxemenus?

#

You could also try this requirement instead of using javascript.

solar acorn
#

it doesnt work, i even tried using basic stuff that is shown in the configs for testing and it still doesnt work

      material: STORAGE_MINECART
      slot: 2
      priority: 3
      view_requirement:
        requirements:
          cooldown:
            type: string equals
            input: "%player_is_op%"
            output: "yes"
      display_name: '&aDaily Reward'
      lore:
        - ''
        - '&aRight Click &7to claim!'
      click_commands:
        - '[console] mcd add %player_name% test 100'
        - '[close]'
        - '[message] &2&l[!] &atest'
#

okay i redid the menu and that somehow fixed it

carmine glade
#

Nice! Most likely an ident error somewhere?

Glad it works!