1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved How can i add a permission

Discussion in 'Skript' started by AKRODOGY, Jul 15, 2018.

Thread Status:
Not open for further replies.
  1. AKRODOGY

    AKRODOGY Active Member

    Joined:
    Mar 20, 2018
    Messages:
    52
    Likes Received:
    2
    Hey, i want to /akro core and /akro admin to have acces with permission,and i don t know, we can help me?

    Code (Skript):
    1. command /akro <[text]> <[text]> <[text]>:
    2.     aliases: /a
    3.     description: [AkroCore] Info Commands
    4.     trigger:
    5.         if arg 1 is "help" or "h":
    6.             message "&8«&7&m-------&8»&e&lAkroHelp&8«&7&m-------&8»" to player
    7.             message "" to player
    8.             message "&c/akro help &f-&7 See the commands" to player
    9.             message "&c/akro admin &f-&7 See the admin commands" to player
    10.             message "&c/akro utility &f-&7 Fun commands" to player
    11.             message "" to player
    12.             message "&8«&7&m-------&8»&e&lAkroHelp&8«&7&m-------&8»" to player
    13.         if arg 1 is "core":
    14.             message "&8&l«»&c&lAkroCore&8&l«»" to player
    15.             message "" to player
    16.             message "&cVersion: {@Version}" to player
    17.             message "&cCore Status: &a&lENABLE" to player
    18.             message "" to player
    19.         if arg 1 is "utility":
    20.             message "&c&lMENTENANTA" to player
    21.         if arg 1 is "admin":
    22.             message "&8&l«»&c&lAdminCommands&8&l«»" to player
    23.             message "" to player
    24.             message "&c/akro admin plugin &f- &7See the AkroPlugins" to player
    25.             message "&c/akro admin minigames &f- &7See the working minigames" to player
    26.             message "&c/akro admin settings &f- &7See the minigames settings" to player
     
  2. Best Answer:
    Post #2 by Aidanete, Jul 15, 2018
  3. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    10
    For a permission for all subcommands in general:
    Code (Skript):
    1. command /akro <[text]> <[text]> <[text]>:
    2.     aliases: /a
    3.     permission: (replace this with a permission node)
    4.     description: [AkroCore] Info Commands
    5.     trigger:
    And if you want a permisson for each one of the subcommands, use this condition:
    Code (Skript):
    1. 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!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...