How to make permissions work?

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

Vxnku

Member
Nov 29, 2022
15
0
1
23
Code:
script options:
    $ use permissions

every 1 seconds:
    loop all players:
        if loop-player have the scoreboard tag "Z":
            add "zinfection" to looped-player's permissions
            execute loop-player command "/zinfection"

I've been trying to enable permissions for several weeks now. I want the script itself to interact with them, as it can determine whether a person has permission or not

This is NOT for me:
Code:
execute console command "/lp user %loop-player% permission set zinfection"
 
youre going to need an add on for that. make sure that the add on is compatable with luckperms, and works on your server version
 
Code:
script options:
    $ use permissions
 
every 1 seconds:
    loop all players:
        if loop-player have the scoreboard tag "Z":
            add "zinfection" to loop-player's permissions
            execute loop-player command "/zinfection"

you wrote "looped-player" instead of "loop-player", regardless i'd suggest using a permissions plugin instead, luckperms is like the best one
 
Status
Not open for further replies.