Advertisement
miyasoku

【Skript】Vanish

Feb 19th, 2020
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. command /vanish:
  2. permission: sk.vanish
  3. permission message: &c権限を所有していないためコマンドを実行できません。
  4. trigger:
  5. hide player from all players
  6. set {vanish.%player%} to true
  7. broadcast "&e%player% left the game"
  8. stop
  9.  
  10. command /unvanish:
  11. permission: sk.vanish
  12. permission message: &c権限を所有していないためコマンドを実行できません。
  13. trigger:
  14. reveal player from all players
  15. set {vanish.%player%} to false
  16. broadcast "&7%player% has joined game"
  17. stop
  18.  
  19. every tick:
  20. loop all players:
  21. if {vanish.%loop-player%} is true:
  22. set action bar of loop-player to "&fYou are invisible from other players! &a/unvanish"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement