#Click requirement error

1 messages · Page 1 of 1 (latest)

solemn echo
#

Hey! I have made a small pets shop menu in deluxe-menu and it work fine with requirement like the player has 1 million dollar,they can buy the pet and if they don’t then deluxe-menu sends a deny message. But i want to set a permission so if a player already owns a pet they get a deny message.
I am using this click requirement syntax:

click_requirement:
requirements:
permission:
type: has permission
permission: mcpet.pet_paladin
deny_commands:
- “[message] &#FFDCA6&lPET SHOP &8| &fYou already own this pet! &#FF0000/pets&f to equipe”

But its not working. Please let me know if its my skill issue or there is some other way.

solemn echo
somber dagger
solemn echo
#

I pasted this message and it shows no error

somber dagger
#

Are you sure you know how to config?\

solemn echo
#

click_requirement:
requirements:
permission:
type: has permission
permission: mcpet.pet_paladin
deny_commands:
- "[message] &#FFDCA6&lPET SHOP &8| &fYou already own this pet! &#FF0000/pets&f to equip"

#

Whats the error in it?? Are you talking about message typo of “equipe” ??

somber dagger
solemn echo
#

I really dont understand how is my config different from you?

somber dagger
#

Did you actually read the config?

solemn echo
#

click_requirement:
requirements:
balance_check:
type: has money
amount: 20000
deny_commands:
- "[sound] ENTITY_VILLAGER_NO"
- "[close]"
- "[message] &cYou do not have enough &fMoney&c required."
click_commands:
- "[sound] ENTITY_VILLAGER_YES"
- '[takemoney] 20000'
- "[console] lp user %player_name% permission set cosmetic.hat.1 true"
- "[message] &#C6FD8FPurchased successful!."

click_requirement:
requirements:
permission:
type: has permission
permission: mcpet.pet_paladin
deny_commands:
- "[message] &#FFDCA6&lPET SHOP &8| &fYou already own this pet! &#FF0000/pets&f to equip"

It’s same right?

somber dagger
#

No

solemn echo
#

Where is the error can you point it?

somber dagger
#

Read my config carefully, you will find it

solemn echo
#

I really dont see it i am blind please tell what is it 🙁

somber dagger
#

YOUR is click_req, mine is view_req

#

Either read the wiki or read the example config, if you unable to, how can you know what are you doing wrong

solemn echo
#

But i wanna set click_requirement. Does click requirement doesn’t work with permissions?

somber dagger
#

It does work, but compare to the logic and what you are trying to achieve, it is not correct

#

You buy A, you unable to buy A anymore. That''s what I provided.

You make we wondering abt your profile description btw 🙂

solemn echo
solemn echo
#

Btw @somber dagger it doesn’t work

solemn echo
#

@somber dagger it still didn’t work. Any idea?

somber dagger
#

and yes, i still concern abt the description 🙂

solemn echo
#

left_click_requirement:
requirements:
doesnthaveperm:
type: '!has permission'
permission: mcpet.pet_paladin
deny_commands:
- '[message] &7[&2Shard Store&7] You have this item already.'
shardamount:
type: '>='
input: '%vault_eco_balance%'
output: 1000000
deny_commands:
- '[message] &7[&2Shard Store&7] You do not have enough Shards for this item.'
left_click_commands:
- '[console] eco take %player_name% 1000000'
- '[console] lp user &player_name% permission set mcpet.pet_paladin true'
- '[message] &7[&2Shard Store&7] You''ve purchased the PETNAME. Access your new companion with /MCpets.'


now this one works fine

#

Got help from mcpets discord

#

I dont get it why deluxemenu discord server is filled with so immature and toxic people

solemn echo
# somber dagger

Btw you colours are not working so that means you dont know how to config?

somber dagger
#

All i do with that video is paste my config i provided. And it works perfectly, i didnt even have to adjust anything.

For your case,

  1. I gave you the config that works, told you to follow it, or read the wiki
  2. this entire thing is still a question mark. If you NEED a permission to click, how can you even give the EXACT permission as the command?

*You need A as a requirement to buy but only get that A permission when successfully purchase it. How? *

  1. To be clear about the config i gave you. You need MONEY to buy A, you get permission A. When you open that menu again, you can't buy A anymore but can equip it. Just that simple, and it works when i drag & drop. You just got the skill issue and not accepting it.

I provided you the example, told you to read it carefully. You keep telling MINE and YOURS are the same, but they are not even close. And you told me toxic? Helping those guy is such a waste of time, lol