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

Ardno

Member
Mar 11, 2019
38
0
0
24
Hello,
I using a latest version of the minecraft skript plugin and I have got a problem with....

Code:
There's no loop that matches 'loop-player has not permission "vanish2.sk" '

I usig some addons, but I not thing it's that.
This is CODE in file core.sk:

Code:
command /vanishsk:
    trigger:
        if player has permission "vanish.sk":
            if {vanish.sk.%player%} is true:
                reveal player from all players
                set {vanish.sk.%player%} to false
                send player title "&c&lNejsi &7&lvanish" with subtitle "&8ostatní tě uvidí"
                message "&2[&a&l+&2] &a%player%" to all players
                stop trigger
            else:
                hide player from all players
                set {vanish.sk.%player%} to true
                send player title "&a&lJsi &7&lvanish" with subtitle "&8nikdo tě neuvidí"
                message "&4[&c&l-&4] &c%player%" to all players
                stop trigger
        else if player has permission "vanish2.sk":
            if {vanish.sk.%player%} is true:
                reveal player from all players
                set {vanish.sk.%player%} to false
                send player title "&c&lNejsi &7&lvanish" with subtitle "&8ostatní tě uvidí"
                message "&2[&a&l+&2] &a%player%" to all players
            else:
                loop all players:
                    loop-player has not permission "vanish.sk":
                        hide player from all loop-player
                        set {vanish.sk.%player%} to true
                        send player title "&a&lJsi &7&lvanish" with subtitle "&8nikdo tě neuvidí"
                        message "&4[&c&l-&4] &c%player%" to all players

Mistake is on line 24.
Please help.

And thank you for all answers.
- Ardno
 
Status
Not open for further replies.