So I have this Vanish Script, and it works, but whenever i quit & join back, I can be seen again and my Actionbar is gone. The way i know i'm still vanished, is if i type in /Vanish, it will say not vanished anymore.
So how do I make it so If i join, and i'm in vanish mode, i'm hidden again, and my actionbar comes back.
So how do I make it so If i join, and i'm in vanish mode, i'm hidden again, and my actionbar comes back.
code_language.skript:
command /Vanish:
permission: Vanish.use
permission message: no no
trigger:
if {sql_.mineplex.Vanish.%player%} is true:
loop all players:
loop-value doesn't have permission "Vanish.see"
add loop-value to {_Vanishto::*}
reveal player from all players
set {sql_.mineplex.Vanish.%player%} to false
send "not vanishd"
loop all players:
loop-value doesn't have permission "Vanish.see"
send "join %player%" to loop-player
else:
loop all players:
loop-value doesn't have permission "Vanish.see"
add loop-value to {_Vanishto::*}
send "quit %player%" to loop-player
hide player from {_Vanishto::*}
set {sql_.mineplex.Vanish.%player%} to true
send "vanishd"
while {sql_.mineplex.Vanish.%player%} is true:
show an action bar from "you are in vanish" to player
wait a second