Solved How can i add a permission

  • 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.

AKRODOGY

Active Member
Mar 20, 2018
52
2
8
24
Hey, i want to /akro core and /akro admin to have acces with permission,and i don t know, we can help me?

code_language.skript:
command /akro <[text]> <[text]> <[text]>:
    aliases: /a
    description: [AkroCore] Info Commands
    trigger:
        if arg 1 is "help" or "h":
            message "&8«&7&m-------&8»&e&lAkroHelp&8«&7&m-------&8»" to player
            message "" to player
            message "&c/akro help &f-&7 See the commands" to player
            message "&c/akro admin &f-&7 See the admin commands" to player
            message "&c/akro utility &f-&7 Fun commands" to player
            message "" to player
            message "&8«&7&m-------&8»&e&lAkroHelp&8«&7&m-------&8»" to player
        if arg 1 is "core":
            message "&8&l«»&c&lAkroCore&8&l«»" to player
            message "" to player
            message "&cVersion: {@Version}" to player
            message "&cCore Status: &a&lENABLE" to player
            message "" to player
        if arg 1 is "utility":
            message "&c&lMENTENANTA" to player
        if arg 1 is "admin":
            message "&8&l«»&c&lAdminCommands&8&l«»" to player
            message "" to player
            message "&c/akro admin plugin &f- &7See the AkroPlugins" to player
            message "&c/akro admin minigames &f- &7See the working minigames" to player
            message "&c/akro admin settings &f- &7See the minigames settings" to player
 
For a permission for all subcommands in general:
code_language.skript:
command /akro <[text]> <[text]> <[text]>:
    aliases: /a
    permission: (replace this with a permission node)
    description: [AkroCore] Info Commands
    trigger:
And if you want a permisson for each one of the subcommands, use this condition:
code_language.skript:
player has permission "(replace this with a permission node)":
Obviusly (replace this with a permission node) means to put a permission node instead of that. Hope it works for you!
 
Status
Not open for further replies.