Advertisement
diabloIIIROS

Vanish Beta

Feb 1st, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. on join:
  2. set {%player%.vanish.toggle} to 0
  3.  
  4. command /vanish:
  5. aliases: /v
  6. trigger:
  7. if player has permission "powercraft.vanish":
  8. add 1 to {vanish.toggle}
  9. if {%player%.vanish.toggle} is 1:
  10. send "&aYou are now vanished" to the player
  11. hide the player from all players
  12. else if {%player%.vanish.toggle} is 2:
  13. send "&cYou Are no longer vanished" to the player
  14. reveal the player from all players
  15. set {%player%.vanish.toggle} to 0
  16. loop all players:
  17. if loop-player has permission "powercraft.vanish.see":
  18. if {%player%.vanish.toggle} is 1:
  19. reveal the player from loop-player
  20. else if {%player%.vanish.toggle} is 2:
  21. reveal the player from loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement