#Vote Menu

1 messages · Page 1 of 1 (latest)

flint berry
#

Hello, I want to create a menu when a player vote x times he can recieve 1 gifts but when he click he can have gift one time
This is my config for the moment can anyone help me ?

        material: RED_CONCRETE
        slot: 10
        display_name: '&6Récompenses n*1'
        lore:
        - ""
        - "Tu as besoin de 4 Votes %voteparty_totalvotes_daily%/4"
        - "Pour Obtenir la récompense"
        - ""
        click_commands:
        - "[console] caisses key give %player_name% vote 1"
        click_requirement:
          requirements:
            1:
              type: string contains
              input: "%voteparty_totalvotes_daily%"
              output: "4"
              deny_commands:
              - "[message] &3&lVALHALLA &7» Tu n'as pas assez de votes"```
analog crescent
analog crescent
# flint berry Çan you show me an exemple ?
      '1':
        material: RED_CONCRETE
        slot: 10
        display_name: '&6Récompenses n*1'
        lore:
        - ""
        - "Tu as besoin de 4 Votes %voteparty_totalvotes_daily%/4"
        - "Pour Obtenir la récompense"
        - ""
        click_commands:
        - "[console] caisses key give %player_name% vote 1"
        - "[meta] set VOTEKEY BOOLEAN true"
        click_requirement:
          requirements:
            1:
              type: string contains
              input: "%voteparty_totalvotes_daily%"
              output: "4"
              deny_commands:
              - "[message] &3&lVALHALLA &7» Tu n'as pas assez de votes"
            2:
              type: "!string equals ignorecase"
              input: "%deluxemenus_meta_has_value_VOTEKEY_BOOLEAN%"
              output: "yes"

Something like this

#

feel free to change the VOTEKEY with whatever key you want. Something relevant to you

flint berry
#

Thx i will try

analog crescent
#

You would have to delete all player data or delete it 1 by 1 using commands

flint berry
analog crescent
#

To avoid having too many key-value pair set I'd suggest you use the value to store the date that the claim was last made