So i tested this script with both of my accounts. And it works, but whenever the default group player quits, and joins back in, the admin's vanish mode turns off..
How can I fix this?
I think it is caused by the 'on quit:' part, but I want to make it so it only turns off the vanish mode if the admin quits. Not a random player on the server.
[doublepost=1495204508,1495141115][/doublepost]Bump
How can I fix this?
I think it is caused by the 'on quit:' part, but I want to make it so it only turns off the vanish mode if the admin quits. Not a random player on the server.
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
on quit:
reveal player from all players
set {sql_.mineplex.Vanish.%player%} to false
wait 1 tick
delete {sql_.mineplex.Vanish.%player%}