How can i add perms using custom perms.

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

BlueRival

Member
Jul 26, 2020
4
0
0
17
Hey I was working on making a skript to add custom perms to a players perms. I have searched for anwsers but I cannot find anything (I also dont know what it wrong xD).
Code:
script options:
    $ use permissions
 
command /addperm [<offline player>] [<text>]:
    trigger:
        add "arg 2" to %arg 1's% permission
 
command /delperm [<offline player>] [<text>]:
    trigger:
        remove "arg 2" from %arg 1's% permissions
This is my skript, I was wondering if anybody can help me fix it.
 
My god, you're badly using % and "
First - permission
Code:
add arg-2
or
add "%arg-2%" #but you'll be probably warned that it's unnecesseary
Then - player
Code:
to arg-1's permissions #you cannot use anything else
 
  • Like
Reactions: BlueRival
Status
Not open for further replies.