Permission Confusion

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

akatas2008

Member
Mar 26, 2021
1
0
1
16
ok so i want to create a command, which only lets certain people use it. but how do permissions work? how do i assign people those permissions? can i create custom permissions? its confusing me... heres example code:
Code:
command /set <string> message <string>:
    permission: skript.set.join_message # what?
    description: Sets message when player joins
    trigger:
        if arg-1 is "join" or "leave":
            set {custom messages::%arg-1%} to arg-2
            message "Set the %arg-1% message to '%arg-2%<reset>'"
        else:
            message "Only 'join' and 'leave' messages are available here."
 
Hi,

You need some permission plugin. I personally recommend Luck Perms. Then you assign permission by command "/lp user <Player> permission set skript.set.join_message"

Or you can create group "/lp creategroup <Name>" and then assign permission to group "/lp group <group name> permission set skript.set.join_message"
You can add player to group by using "/lp user <player> parent add <group>

Hope I helped
 
Status
Not open for further replies.