#Deluxmenu multiple requirements not working when user clicks they get reward always ;(

1 messages · Page 1 of 1 (latest)

limpid sequoia
#

or even help explain it im trying to use wiki but not sure if i got it right i started with only view requirments and that worked very well but soon as i tried to do it via wiki, im pretty new to this just need a helpfull solve so i can see learn and finish the rest on my own

humble widget
limpid sequoia
#

ok ill try that see if that help, thanks

limpid sequoia
#

i realy dont want to buy configs rather just figure it out my self, but its hard when nothing i do is working

#

if anyone can send me a pastebin of this working with the 2 requirments id be greatfull

dim oxide
#

i cant access pastebin

limpid sequoia
#

ill get you a new one

#

paste shoudl still work i set it to non expire but iff not this is what it is

#
'tier_1_unclaimed':
    material: WHITE_SHULKER_BOX
    slot: 20
    priority: 1
    view_requirement:
      requirements:
        Permission:
          type: '!has permission'
          permission: meta.tiers.1
    update: true
    display_name: '&eTier I'
    lore:
    - ''
    - '&#FF2B2B| Requirments'
    - '&7Hours Played: &e%playtime_time_hours% / 1'
    - '&7Votes: &a%pinataparty_votes_total%/4'
    - ''
    - '&#e3d219| Rewards'
    - '&#e3d219| $5,000'
    - '&#e3d219| 1 Common Key'
    - ''
    - '&#19e326| Click to claim this Tier.'
    left_click_requirement:
      requirements:
        perm1:
          type: javascript
          expression: '%pinataparty_votes_total% >= 4'
        perm2:
          type: javascript
          expression: '%playtime_time_hours% >= 1'
      deny_commands:
        - "[message] &7You have not reach the requirements for this tier."
    left_click_commands:
    - "[message] &7You have Claimed Tier I."
    - '[console] eco give %player_name% 5000'
    - '[console] crate key give %player_name% common 1'
  'tier_1_claimed':
    material: WHITE_SHULKER_BOX
    slot: 20
    priority: 2
    view_requirement:
      requirements:
        Permission:
          type: 'has permission'
          permission: meta.tiers.1
    update: true
    display_name: '&eTier I'
    lore:
    - ''
    - '&#FF2B2B| You have already claimed this Tier'
    - ''
dim oxide
limpid sequoia
#

ok i will try that thankyou

#

that also did nothing

#

this is so annoying right now

buoyant cape
# limpid sequoia this is so annoying right now

theres no quotes around the placeholders within the javascript expression - although u should just use '>=' type instead of javascript

          type: '>='
          input: '%pinataparty_votes_total%'
          output: 4```

etc
limpid sequoia
#

i did try that im gonna have to start from scratch cause it jsut dont work for me

#

if i still have issues after restart ill ask again