#Click Commands no worky with multiple requirements?

1 messages ยท Page 1 of 1 (latest)

paper nimbus
#

I'm sure I'm missing something simple ๐Ÿคฆโ€โ™‚๏ธ

tranquil palm
#

click_commands should be in-line with click_requirement

#

also, if you want minimum_requirements: 1 you need to add optional: true to each requirement you want optional

paper nimbus
#

If I wanted all the requirements met, would I leave it the same?

#

Also thank you very much โค๏ธ

severe lagoon
paper nimbus
#

Ah ok tysm

severe lagoon
#

np :d

paper nimbus
#

https://paste.helpch.at/iwovijucab.vbnet

I'm back with more questions ๐Ÿ˜ญ

Firstly am I using the [givepermission] node/function correctly?
Secondly is there an easier way to deny access to a button after it's been used/pressed/claimed etc?

#

What I'm trying to do is click once, if player meets requirements, give perms /rank/rewards/whatever, but then when you go to press it a second time it checks for the perm denying the player if already accepted/claimed/pressed

severe lagoon
#

but personally i prefer the console command cause it doesn't give a debug msg

#

just letting u know about that

paper nimbus
#

so for that, say im using luck perms

#

itd be [console] lp user blah blah blah?

severe lagoon
#

lp user %player_name% permission set (permission) true

#

ye

paper nimbus
#

ok poggers

severe lagoon
#

the givepermission works fine

#

but just a note ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

severe lagoon
#

also the last deny command should be a lil more in

#

cause it acts like global now(i think)

#

do a requirement that is
type: '!has permission'
permission: 'permission'

#

and use um idk ๐Ÿ’€

#

the perm u give with the luckperms

#

the smaa.rank.larva

#

any questions @paper nimbus ?OKK

#

also how do u have the ip in your status o.O

paper nimbus
#

uhh like custom status

#

when prism launcher opens

#

I make it say that instead

severe lagoon
#

ohh

#

cool cool

paper nimbus
#

I dont even know what I'm doing wrong at this point ๐Ÿ˜ญ

#

the deny commands aren't working

steady goblet
#

does the spacing look right? ๐Ÿ™‚

#
    click_requirement:
      requirements:
      voteCount:
        type: 'integer equals'
        input: '%votingplugin_total_alltime%'```
```yaml
      resettrue:
      type: 'has permission'
      permission:
      - 'smaa.rank.Reset'
      deny_commands:
        - '[message] im just a placeholder'
      click_commands:
        - '[takepermission] smaa.rank.Reset'```
paper nimbus
#

Is the logic even right on this?