Vanish: not working

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

Itqly_

Member
Sep 20, 2018
29
1
0
30
Hey guys, I was making a Vanish skript for my server and after completing it, and reload the skript without errors
I tried /v and it said "An internal error occurred..."
Im new to Skript so I was wondering why?

the Skript
code_language.skript:
options:
    permission: command.vanish
    permissionalert: command.vanish
    
command /vanish [<offline player>]:
    permission: {@permission}
    permission message: &7You don't have the permission.
    aliases: /v
    executable by: player
    trigger:
        if arg 1 is not set:
            if {vanish.%player%} is not set:
                hide the player from all players
                send "&7You &4V&ca&6n&ei&as&2h&9e&3d"
                set {vanish.%player%} to true
                loop all players:
                    if loop-player has permission "{@permissionalert}":
                        send "&f%player% &4V&ca&6n&ei&as&2h&9e&3d" to loop-player
            else:
                reveal the player to all players
                send "&7You are no longer &4V&ca&6n&ei&as&2h&9e&3d"
                delete {vanish.%player%}
                loop all players:
                    if loop-player has permission "{@permissionalert}":
                        send "&f%player% &7is no longer &4V&ca&6n&ei&as&2h&9e&3d" to loop-player
        if arg 1 is set:
            if {vanish.%arg 1%} is not set:
                hide the arg 1 from all players
                send "&7You &4V&ca&6n&ei&as&2h&9e&3d" to arg 1
                send "&f%player% &4V&ca&6n&ei&as&2h&9e&3d" to player
                set {vanish.%arg 1%} to true
                loop all players:
                    if loop-player has permission "{@permissionalert}":
                        send "&f%player% &4V&ca&6n&ei&as&2h&9e&3d" to loop-player
            else:
                reveal the arg 1 to all players
                send "&7You are no longer &4V&ca&6n&ei&as&2h&9e&3d" to arg 1
                send "&f%player% &7is no longer &4V&ca&6n&ei&as&2h&9e&3d" to player
                delete {vanish.%arg 1%}
                loop all players:
                    if loop-player has permission "{@permissionalert}":
                        send "&f%player% &7is no longer &4V&ca&6n&ei&as&2h&9e&3d" to loop-player


Im using:
Skript
skQuery
skRayFall
 
Send the console error (when you get the message An internal error occured ..., you have an error in console)
 
The code is working... Send the console error and your version of Skript.
 
Status
Not open for further replies.