Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- set {%player%.vanish.toggle} to 0
- command /vanish:
- aliases: /v
- trigger:
- if player has permission "powercraft.vanish":
- add 1 to {vanish.toggle}
- if {%player%.vanish.toggle} is 1:
- send "&aYou are now vanished" to the player
- hide the player from all players
- else if {%player%.vanish.toggle} is 2:
- send "&cYou Are no longer vanished" to the player
- reveal the player from all players
- set {%player%.vanish.toggle} to 0
- loop all players:
- if loop-player has permission "powercraft.vanish.see":
- if {%player%.vanish.toggle} is 1:
- reveal the player from loop-player
- else if {%player%.vanish.toggle} is 2:
- reveal the player from loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement