#Multiple Requirement

1 messages · Page 1 of 1 (latest)

wooden sluice
#

Hi, i want to put 2 requirement to the left click (permission and money) But i don't understand what is the probleme

left_click_requirement:
      requirements:
        has_permission:
          type: '!has permission'
          permission: "ranks.citoyen"
          deny_commands:
            - '[message] &cVous avez déjà acheté ce rank!'
        has_item:
          type: 'has money'
          amount: 15000
          deny_commands:
            - '[message] &cVous n''avez pas assez d''argent! Requis: 15000€'
slim seal
#

im not a deluxemenus expert but you have the has_permission and has_item doing the opposite

#

Id probably remove the ! from the permission requirement

wooden sluice
slim seal
#

ah

#

I believe you may need to look into either the minimum_requirements option

#

I think both the permissions are conflicting

random oxide
#

can you send the entire menu/item @wooden sluice

#

?paste

dapper micaBOT
#
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

dapper micaBOT
#
📋 Paste Converted!
https://paste.helpch.at/oyamumuyim

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

random oxide
#

And what does the item currently do if:

  • you do not have the ranks.marin permission
    and
  • you have 15000 balance
#

just no left_click_commands being run?

wooden sluice
#

No it say the deny command message

random oxide
#

thinking maybe we use luckperms placeholders instead

%luckperms_in_group_<group>%
%luckperms_inherits_group_<group>%
#
        has_permission:
          type: 'string equals'
          input: "%luckperms_in_group_marin%"
          output: 'yes'
          deny_commands:
          - '[message] &cVous avez déjà acheté ce rank!'
``` maybe
#

or is ranks.marin not related to groups

#

mayby I'm thinking group.marin

wooden sluice
#

Yes ranks.marin is a permission that I invented, But I tried with group.marin And it did the same thing.

random oxide
#

o

random oxide
wooden sluice
#

Yep

random oxide
#

lemme take a look here

wooden sluice
#

Ok thank you

random oxide
wooden sluice
#

Gimme a minute I'll try

random oxide
#

%luckperms_check_permission_ranks.marin%

#

that's my thought this

#

you can even /papi parse me %placeholder% to test it

wooden sluice
random oxide
#

provide the output of the placeholder to chat

#

yes or no

wooden sluice
#

it only say %placeholder%

random oxide
#

you're supposed to put the actual placeholder you're testing

wooden sluice
#

Oh so i do /papi parse me %luckperms_check_permission_ranks.marin%

random oxide
#

you don't have to parse it though, you can just edit the menu and keep doing what you were

random oxide
#

the /papi parse command just makes it really easy to test placeholders before trying to use them elsewhere

wooden sluice
#

Ok

#

That told me what I wrote

#

%luckperms_check_permission_ranks.marin%

random oxide
#

ah shoot

#

idk why the placeholderapi bot doesn't work in here...

#

-papi luckperms

#

download the expansion @wooden sluice
/papi ecloud download luckperms
/papi reload

#

then try the command again

wooden sluice
#

Alr it say yes

random oxide
random oxide
#

Well, I said nice, but is it supposed to say yes?

#

lol

wooden sluice
#

Uh

#

In which case should he say yes?

random oxide
#

if you have the permission it should say yes

wooden sluice
#

Ah okay, except I don't seem to have permission

#

It says yes for every permission

random oxide
#

do you have op?

#

or * permission?

wooden sluice
#

i'm op

random oxide
#

ah...

#

well that would be your issue

#

sadly, 4 hours late 😂

wooden sluice
#

(':

random oxide
#

if you have op you're gonna have ranks.marin permission

wooden sluice
#

Ok so i'll check if all work

#

Alright it seems to work thank you !

#

Have a good day