#Inverse requirement not working

1 messages · Page 1 of 1 (latest)

weak dagger
#

Hi, not sure what I'm doing wrong but my player does not have the permission node 'ranks.upgrade.settler'

I do however, have the permission 'ranks.upgrade.dweller'

Instead of the message 'You already have a higher rank!' showing up, the 'You are currently this rank!' message is what's appearing.

What can I do to fix this?

      requirements:
        permhave:
          type: '!has permission'
          permission: ranks.upgrade.settler
          deny_commands:
            - '[message]&7You are currently this rank!'
        noperm:
          type: '!has permissions'
          permissions:
          - ranks.upgrade.dweller
          - ranks.upgrade.local
          - ranks.upgrade.elder
          minimum: 1
          deny_commands:
            - '[message]&7You already have a higher rank!'```
keen mirage
#

Can you go to plugins/DeluxeMenus/config.yml and set debug: LOWEST then restart the server?

#

After the server has started, please send the startup logs

hybrid lindenBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

weak dagger
#

I separated each permission requirement instead and it's sorted out now

weak dagger
#

If I want them bundled together I'm guessing for each inverse permission requirement, there shouldn't be a 'minimum' so that it's required they do not have ANY of the perms?

keen mirage
#

I only just noticed that

weak dagger
#

Hmm, I thought if it's !has permissions the deny command will run if they have one of the perms listed 🤔

#

Not sure if it's a bug I found or if I just messed up with configuring things

keen mirage
#

Oh. That's what you said as well :))

keen mirage
# weak dagger Hmm, I thought if it's !has permissions the deny command will run if they have o...

Let me think about this again. I am too tired.

If the requirement is has permissions, with a list of 3 and a minimum: 1:
- execute success commands if user has at least 1 of the 3 permissions
- execute deny commands if user has none of the 3 permissions

If the requirement is !has permissions, with a list of 3 and a minimum: 1:
- executes success commands if user is missing at least one of the 3 permissions. This means it will execute if user has 0, 1 or 2 of the permissions
- executes deny commands if the user has all 3 permissions