Advertisement
CREAMPAN0408

Untitled

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