#command requirment

1 messages Β· Page 1 of 1 (latest)

dark finch
#

how can i make it so the player must have 100 hours of playtime to able able to execute the left click command on an item in a gui?

obsidian berry
dark finch
#

Ty so much

obsidian berry
#

πŸ™‚ πŸ‘

dark finch
#

left_click_commands:
click_requirement:
type: ">="
input: "%statistic_hours_played%"
output: 100

#

would it look like that?

obsidian berry
#

yes, little formatting issue

#
    left_click_commands:
    click_requirement:
        type: ">="
        input: "%statistic_hours_played%"
        output: 100
dark finch
#

this what i did and its not working 😦

late flame
dark finch
#

changed input to %statistic_hours_played% still dosent work

#

idk what im doing wrong

obsidian berry
#

did you run these commands

/papi reload```
dark finch
#

Yes I did

obsidian berry
#

send your menu config

tidal lavaBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
β€’ HelpChat Paste - How To Use

dark finch
obsidian berry
#
    click_commands:
    click_requirements:
      requirements:
        playtime:
          type: ">="
          input: "%statistic_hours_played%"
          output: 100
          success_commands:
           - '[message] you have been upgraded'
          deny_commands:
           - '[message] you dont have enough'

try this πŸ‘†

dark finch
#

still nothing

late flame
dark finch
#

tried that still nothing

#

is it possible to do it?

late flame
#

do what

#

what's wrong?

#

what exactly doesn't work?

dark finch
#

it dosent do the command

late flame
#

what command?

#

send the menu you are using right now

#

?paste

tidal lavaBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
β€’ HelpChat Paste - How To Use

dark finch
#

im trying to make it where if they have more than 100 hours of playtime they get a command

#

and if they dont they get a message saying u dont have enough playtime

late flame
#
      requirements:
        playtime:
          type: ">="
          input: "%statistic_hours_played%"
          output: 100
      deny_commands:
      - '[message] you dont have enough'
    click_commands:
    - '[message] you have been upgraded'```
dark finch
#

it works!!

#

tysmmmm!!

#

<333