#DeluxeMenus permission

1 messages · Page 1 of 1 (latest)

lost comet
#

Is it possible to check if a player have a permission with deluxemenus? If its possible a exaple config would nice, so i can see how it works.

solemn rampart
# lost comet Is it possible to check if a player have a permission with deluxemenus? If its p...

yeah. you can use the has permission requirement. I believe that might require you to have Vault installed but I'm not 100% sure.

    click_requirement:
      requirements:
        permission_requirement:
          type: has permission
          permission: "SOME.PERMISSION.NODE"
          deny_commands:
          - "[message] You need to have the SOME.PERMISSION.NODE permission to click this!"

the deny commands are optional. I've just added them to showcase what's possible.