Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /vanish:
- aliases: /vanish
- permission: vanish.vanish
- trigger:
- if {vanish.%UUID of player%} is not set:
- loop all players:
- if loop-player doesn't have permission "vanish.vanish":
- hide player to loop-players
- loop all players:
- if {vanish.%UUID of loop-players%} is true:
- reveal loop-players to player
- if {vanish.%UUID of loop-players%} is not set:
- reveal player to loop-players
- add "%player%" to {vanish::*}
- message "&cVous êtes désormais invisible !"
- set {vanish.%UUID of player%} to true
- if {vanish.%UUID of player%} is false:
- loop all players:
- if loop-player doesn't have permission "vanish.vanish":
- hide player to loop-players
- loop all players:
- if {vanish.%UUID of loop-players%} is true:
- reveal loop-players to player
- add "%player%" to {vanish::*}
- message "&cVous êtes désormais invisible !"
- set {vanish.%UUID of player%} to true
- else:
- reveal player to all players
- message "&aVous êtes de nouveau visible !"
- remove "%player%" from {vanish::*}
- set {vanish.%UUID of player%} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement