variables: {vanish::%player%} = false on join: set {vanish::%player%} to false reveal player to all players command /vanish []: aliases: v permission: vanish.* trigger: if offlineplayer-arg isn't set: if {vanish::%player%} is true: set {vanish::%player%} to false send player title "&6&lVANISH" with subtitle "&f- &4&lWYLACZONY &f-" for 1.7 seconds reveal player to all players play raw sound "random.explode" at player with pitch 1 volume 7 stop if {vanish::%player%} is false: set {vanish::%player%} to true send player title "&6&lVANISH" with subtitle "&f- &2&lWLACZONY &f-" for 1.7 seconds hide player from all players play raw sound "random.explode" at player with pitch 1 volume 7 stop if offlineplayer-arg is set: if {vanish::%offlineplayer-arg%} is true: set {vanish::%offlineplayer-arg%} to false send offlineplayer-arg title "&6&lVANISH" with subtitle "&f- &4&lWYLACZONY &f-" for 1.7 seconds send " &6&lVANISH &7Wylaczyles &6vanish &7dla &c%offlineplayer-arg%" to player reveal offlineplayer-arg to all players play raw sound "random.explode" at offlineplayer-arg with pitch 1 volume 7 stop if {vanish::%offlineplayer-arg%} is false: set {vanish::%offlineplayer-arg%} to true send offlineplayer-arg title "&6&lVANISH" with subtitle "&f- &2&lWLACZONY &f-" for 1.7 seconds send " &6&lVANISH &7Wlaczyles &6vanish &7dla &c%offlineplayer-arg%" to player hide offlineplayer-arg from all players play raw sound "random.explode" at offlineplayer-arg with pitch 1 volume 7 stop command /vanishinfo []: aliases: vinfo permission: vanish.* trigger: if offlineplayer-arg is set: if {vanish::%offlineplayer-arg%} is true: send " " to player send " &7&lGRACZ &f&l%offlineplayer-arg%" to player send " &6Vanish &7jest aktualnie &2&lWLACZONY " to player send " " to player stop if {vanish::%offlineplayer-arg%} is false: send " " to player send " &7&lGRACZ &f&l%offlineplayer-arg%" to player send " &6Vanish &7jest aktualnie &4&lWYLACZONY " to player send " " to player stop else: send " &4&lERROR &cPodaj nick gracza " to player stop on damage: if {vanish::%attacker%} is true: if attacker's tool is stick: stop else: cancel event if {vanish::%victim%} is true: cancel event on pick up: if {vanish::%player%} is true: cancel event