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.

How to make permissions work?

Discussion in 'Skript' started by Vxnku, Jan 12, 2023.

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

    Vxnku Member

    Joined:
    Nov 29, 2022
    Messages:
    15
    Likes Received:
    0
    Code (Text):
    1.  
    2. script options:
    3.     $ use permissions
    4.  
    5. every 1 seconds:
    6.     loop all players:
    7.         if loop-player have the scoreboard tag "Z":
    8.             add "zinfection" to looped-player's permissions
    9.             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 (Text):
    1. execute console command "/lp user %loop-player% permission set zinfection"
     
  2. yea rite

    yea rite Active Member

    Joined:
    Jul 11, 2021
    Messages:
    82
    Likes Received:
    8
    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
     
  3. Vxnku

    Vxnku Member

    Joined:
    Nov 29, 2022
    Messages:
    15
    Likes Received:
    0
    What addon I need?
     
  4. Pingusate

    Pingusate Active Member

    Joined:
    Mar 29, 2018
    Messages:
    50
    Likes Received:
    4
    Code (Text):
    1. script options:
    2.     $ use permissions
    3.  
    4. every 1 seconds:
    5.     loop all players:
    6.         if loop-player have the scoreboard tag "Z":
    7.             add "zinfection" to loop-player's permissions
    8.             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
     
Thread Status:
Not open for further replies.

Share This Page

Loading...