1. Our new announcement has been released for the 12 days of Christmas, giving away over $1,250 worth of PayPal, Bitcoin, Ads Manager credit, and more! Read more here!

Requesting Deluxemenus Help

Discussion in 'Configuration' started by iRobSch, Oct 17, 2019.

  1. iRobSch

    iRobSch Member

    Messages:
    40
    Reactions:
    +2
    Hey everyone, anyone that can help with DeluxeMenus? I'm currently trying to make a GUI where a player needs a specific amount of Xp-Levels in order to purchase an item. What I need to know is how I can make it so a player can also receive the item if it has {x} experience.
     
  2. Asodey

    Asodey Server Setups Specialist Premium

    Minecraft Accounts: Crenel Finable
    Messages:
    1,756
    Reactions:
    +514
    Code:
    view_requirement:
      requirements:
        check_exp:
          type: >=
          input: '%player_exp%'
          output: 10
          deny_commands:
         - '[message] You don''t have 10 exp!'
     
  3. OP
    OP
    iRobSch

    iRobSch Member

    Messages:
    40
    Reactions:
    +2
    That does not work. I tried putting it there, but I could still 'purchase' the item even with 0 xp-levels.
     
  4. Asodey

    Asodey Server Setups Specialist Premium

    Minecraft Accounts: Crenel Finable
    Messages:
    1,756
    Reactions:
    +514
    are you using an updated version of deluxemenus ?
     
  5. OP
    OP
    iRobSch

    iRobSch Member

    Messages:
    40
    Reactions:
    +2
    Latest version.
     
  6. Frxq15

    Frxq15 Setup Specialist | Manager Supreme Premium

    Minecraft Accounts: Frxq15 CarveKing CarveQueen
    Messages:
    392
    Reactions:
    +101
    have you done /papi ecloud download player
     
  7. OP
    OP
    iRobSch

    iRobSch Member

    Messages:
    40
    Reactions:
    +2
    Yes, I have, but it still won't work.
     
  8. aBooDyy

    aBooDyy https://aboodyy.net/ Premium

    Minecraft Accounts: aBooDyy Prostitutor
    Messages:
    92
    Reactions:
    +30
    As Asodey said, but it should be left/right_click_requirement: and not view requirement, also the placeholder is %player_total_exp%
    So:

    Code:
    left_click_requirement:
      requirements:
        name:
          type: '>='
          input: '%player_total_exp%'
          output: 10
          deny_commands:
         - "[message] &cYou don't have enough exp."
    Check this example if you want.
     
    • Agree Agree x 1