#Deluxe Menu Help

1 messages · Page 1 of 1 (latest)

molten prawn
#

Could anyone tell me what exactly is wrong with this menu? It doesn't seem to actually perform any commands, no matter what is done.

    material: 'PIXELMON_POKE_BALL'
    hide_attributes: true 
    slot: 11
    display_name: '&#ffffff&l&nPlay for <HOURS> hours for the following: '
    lore: 
    - ' '
    - '&#fff30fREWARD' 
    - ' '
    left_click_requirement:
      requirements:
        online 2 hours:
          type: '>='
          input: '%statistic_hours_played%'
          output: 2
        success_commands:
          - '[console] broadcast &7Dxhcky is the best!'
        deny_commands:
          - "[message] &7You don't have enough playtime."
    right_click_requirement:
       requirements:
         online 2 hours:
           type: '<='
           input: "%statistic_hours_played%"
           output: 2
       success_commands:
         - "[message] &7Dxhcky is the best!"
       deny_commands:
         - "[message] &7You don't have enough playtime."
       optional: true```
autumn lodge
#
  1:
    material: 'PIXELMON_POKE_BALL'
    hide_attributes: true 
    slot: 11
    display_name: '&#ffffff&l&nPlay for <HOURS> hours for the following: '
    lore: 
    - ' '
    - '&#fff30fREWARD' 
    - ' '
    left_click_requirement:
      requirements:
        online 2 hours: # <----- wrap with '' or ""
          type: '>='
          input: '%statistic_hours_played%'
          output: 2
        success_commands:
          - '[console] broadcast &7Dxhcky is the best!'
        deny_commands:
          - "[message] &7You don't have enough playtime."
    right_click_requirement:
       requirements:
         online 2 hours: # <----- wrap with '' or ""
           type: '<='
           input: "%statistic_hours_played%"
           output: 2
       success_commands:
         - "[message] &7Dxhcky is the best!"
       deny_commands:
         - "[message] &7You don't have enough playtime."
       optional: true
molten prawn
#
    material: 'PIXELMON_POKE_BALL'
    hide_attributes: true 
    slot: 11
    display_name: '&#ffffff&l&nPlay for <HOURS> hours for the following: '
    lore: 
    - ' '
    - '&#fff30fREWARD' 
    - ' '
    left_click_requirement:
      requirements:
        'online 2 hours': # <----- wrap with '' or ""
          type: '>='
          input: '%cmi_user_playtime_hours%'
          output: 2
        success_commands:
          - '[console] broadcast &7Dxhcky is the best!'
        deny_commands:
          - "[message] &7You don't have enough playtime."
    right_click_requirement:
       requirements:
         'online 2 hours': # <----- wrap with '' or ""
           type: '<='
           input: "%cmi_user_playtime_hours%"
           output: 2
       success_commands:
         - "[message] &7Dxhcky is the best!"
       deny_commands:
         - "[message] &7You don't have enough playtime."
       optional: true```

I changed the placeholder to see if it would work, because I know CMI's work, and it still doesn't work with this. Doesn't seem anything happens in console either
#

I also tried removing the "optional:true" part, and that didn't seem to do anything either

autumn lodge
#

%cmi_user_playtime_hours% always <= 2

#

should be >=

#

@molten prawn

molten prawn
#

I tried reversing it but it didn't work either. We've also got the deny commands one, which should go off if that were the case. There's currently nothing in this that's happening when I click

autumn lodge
#
  1:
    material: 'PIXELMON_POKE_BALL'
    hide_attributes: true 
    slot: 11
    display_name: '&#ffffff&l&nPlay for <HOURS> hours for the following: '
    lore: 
    - ' '
    - '&#fff30fREWARD' 
    - ' '
    click_requirement: # <--- you can use this for left and right click
      requirements:
        'online 2 hours': # <--- wrap with '' or ""
          type: '>='
          input: '%cmi_user_playtime_hours%'
          output: 2
          success_commands:
            - '[broadcast] &7Dxhcky is the best!'
          deny_commands:
            - "[message] &7You don't have enough playtime."
#

should work

#

%cmi_user_playtime_hours% <- is this return number ?

molten prawn
#

It should be. I've done a papi parse on myself and it shows up properly. I unfortunately haven't really done too much with menus. This has kinda been a piecing up of various things me and @inner anvil have found in the Discord/Wiki