for some reason when i reload this i have no errors but when i try to use it it dosen't work
Code:
command /vanish:
permission: vanish
permission message: &cYou can't use that!
trigger:
if {vanish::%player%} is false:
set {vanish::%player%} to true
if {vanish::%player%} is true:
loop all players:
if loop-player does not have permission "vanish":
hide player from loop-player
send "&aYou have been vanished" to player
loop all players:
if loop-player has permission "vanish":
send "&bStaff System &7> &fStaff member %player% has been vanished" to loop-player
if {vanish::%player%} is true:
set {vanish::%player%} to false
if {vanish::%player%} is false:
reveal player to all players
send "&aYou have been unvanished" to player
loop all players:
if loop-player has permission "vanish":
send "&bStaff System &7> &fStaff member %player% has been unvanished" to loop-player