Solved Multiple Permissions, Optional.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Hello everyone,

I wondered if it was possible to have multiple permissions, this would include something like 'core.menus.*' for a master permission (permissions for everything). But would also have the default permission like 'core.menus.1' that would only have the permission to the 1st menu.

If it was possible to either have 'core.menus.*' or 'core.menus.1' you can open the menu I think it looks something like this:

Code:
command /menu1:
    permission: core.menus.*, core.menus.1
    trigger:
        #You get the idea don't you

Thanks in advance,

- TheCringleYT
 
Putting just "core.menus.1" will also work with the permission "core.menus.*", as the star stands for everything. So "example.*" would work as "example.example" or "example.123" or so on.
 
Code:
command /menu1:
    trigger:
        if sender has permission "blah" or "blah":
            message "yes." to sender
        else:
            message "&cYou do not have access to that command." to sender
 
Status
Not open for further replies.