#Multiple Requirements Issue

1 messages · Page 1 of 1 (latest)

near imp
#

Hello, I have a mistake with my code, it does not recognize the two requirements, it only recognizes the votes requirement. Do you know what’s wrong? When I withdraw the votes requirement, he recognizes the money. (I’m not op)

torn phoenixBOT
#
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

gleaming robin
#

your config

    left_click_requirement:
      requirements:
        has_money:
          type: has money
          amount: 100000
      deny_commands:
      - "[message] Vous ne possédez pas l'argent nécessaire"
      requirements:
        has_vote:
          type: '>='
          input: '%VotingPlugin_total%'
          output: '14'
      deny_commands: 
      - "[message] Vous ne possédez pas le nombre de votes requis"
#

my config

    left_click_requirement:
      requirements:
        has_money:
          type: has money
          amount: 100000
          deny_commands:
          - "[message] Vous ne possédez pas l'argent nécessaire"
        has_vote:
          type: '>='
          input: '%VotingPlugin_total%'
          output: '14'
          deny_commands: 
          - "[message] Vous ne possédez pas le nombre de votes requis"
#

@near imp

near imp
#

Ok I will try, when I removed the second "requirement", the menu did not open

gleaming robin
#

send me console log when open

near imp
#

It works, thx !