CREAMPAN0408

Untitled

Apr 20th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. on rightclick with blaze powder:
  2. if name of player's tool is "&a&l<<Hide All Players>>":
  3. if {cd::%player%} is not set:
  4. wait 1 tick
  5. hide players from player
  6. send "&6All players hide."
  7. set the name of the player's tool to "&6&l<<Show All Players>>"
  8. set {cd::%player%} to true
  9. wait 3 seconds
  10. delete {cd::%player%}
  11. stop
  12. else:
  13. send "&aWait a bit."
  14. if name of player's tool is "&6&l<<Show All Players>>":
  15. if {cd::%player%} is not set:
  16. wait 1 tick
  17. reveal players to player
  18. send "&6You can see all players."
  19. set the name of the player's tool to "&a&l<<Hide All Players>>"
  20. set {cd::%player%} to true
  21. wait 3 seconds
  22. delete {cd::%player%}
  23. stop
  24. else:
  25. send "&aWait a bit."
  26.  
  27. command /showitem:
  28. trigger:
  29. if player do not have clock named "&6&l<<Show All Players>>":
  30. give blaze powder named "&6&l<<Show All Players>>" to player
  31.  
  32. command /hideitem:
  33. trigger:
  34. if player do not have clock named "&a&l<<Hide All Players>>":
  35. give blaze powder named "&a&l<<Hide All Players>>" to player
  36.  
  37. on join:
  38. if {cd::%player%} is set:
  39. delete {cd::%player%}
  40.  
  41. on chat:
  42. set {_waited} to difference between {spam.%player%.lastused} and now
  43. if {_waited} is less than 1 seconds:
  44. message "&cPlease do not spam!"
  45. cancel event
  46. stop
  47. set {spam.%player%.lastused} to now
Add Comment
Please, Sign In to add comment