bed_the_skripter

Vanish [skript]

Jul 16th, 2022
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. options:
  2. felkialto: &7(&c!&7)
  3. permission: vanish.use
  4. pm: &cIt's not allowed...
  5.  
  6. command /vanish [<offline player>]:
  7. permission: {@permission}
  8. permission message: {@pm}
  9. trigger:
  10. if arg 1 is not set:
  11. if {vanish.%player%} is not set:
  12. hide the player from all players
  13. send "&7&m----------------------------------------------------"
  14. send "{@felkialto} &7You are » &cVanish"
  15. send "&7&m----------------------------------------------------"
  16. set {vanish.%player%} to true
  17. else:
  18. reveal the player from all players
  19. send "&7&m----------------------------------------------------"
  20. send "{@felkialto} &7You are no longer » &cVanish"
  21. send "&7&m----------------------------------------------------"
  22. delete {vanish.%player%}
  23. if arg 1 is set:
  24. if {vanish.%arg 1%} is not set:
  25. hide the arg 1 from all players
  26. send "&7&m----------------------------------------------------"
  27. send "{@felkialto} &7You are » &cVanish" to arg 1
  28. send "&7&m----------------------------------------------------"
  29. set {vanish.%arg 1%} to true
  30. else:
  31. reveal the arg 1 from all players
  32. send "&7&m----------------------------------------------------"
  33. send "{@felkialto} &7You are no longer » &cVanish" to arg 1
  34. send "&7&m----------------------------------------------------"
  35. delete {vanish.%arg 1%}
  36. on join:
  37. loop all players:
  38. if {vanish.%loop-player%} is true:
  39. reveal the loop-player from all players
  40. hide the loop-player from all players
Advertisement
Add Comment
Please, Sign In to add comment