Skript Permissions/Variables/Arguments

Discussion in 'Skript' started by Lightlyrow, Jun 20, 2015.

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

    I want to know how to input a variable/argument into a permission node using Skript.

    So I have this:

    Code (Text):
    on command "/kit %text%":
        player has permission "essentials.kits.%text%":
            message "hello" to player
        else:
            message "bye" to player
    It doesn't work.
    For example, I want /kit pvp to test if the player has the permission node: essentials.kits.pvp but how do I do that?
     
    • Optimistic Optimistic x 2
  2. joshwenke

    Wiki Team

    You'll want to set it up as a real command.

    Code (Text):

    command /kit <text>:
        trigger:
            player has permission "essentials.kits.%arg 1%":
                message "hello" to player
            else:
                message "bye" to player
     
     
    • Like Like x 2
  3. Oh, that post was old :p Now I know how to Skript much better. xD
    But thanks anyway! :D
     
    • Agree Agree x 1
    • Optimistic Optimistic x 1
  4. joshwenke

    Wiki Team

    I figured :p I just saw it in a search result and thought I'd quick help out.
     
    • Like Like x 1
  5. Haha :)
     
  6. It helped me! Thanks <3
     
    • Like x 3
    • Funny x 2
    • Agree x 1
    • Winner x 1
    • Optimistic x 1
Thread Status:
Not open for further replies.