Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick with compass:
- if name of player's tool is "&a&lHide All Players":
- if {cd::%player%} is not set:
- wait 1 tick
- hide players from player
- send "&6All players hide."
- play sound "ENTITY_GUARDIAN_FLOP" for player
- set the name of the player's tool to "&6&lShow All Players"
- set {cd::%player%} to true
- wait 3 seconds
- delete {cd::%player%}
- stop
- else:
- send "&aWait a bit."
- if name of player's tool is "&6&lShow All Players":
- if {cd::%player%} is not set:
- wait 1 tick
- reveal players to player
- send "&6You can see all players."
- play sound "ENTITY_GUARDIAN_HURT" for player
- set the name of the player's tool to "&a&lHide All Players"
- set {cd::%player%} to true
- wait 3 seconds
- delete {cd::%player%}
- stop
- else:
- send "&aWait a bit."
- on join:
- if {cd::%player%} is set:
- delete {cd::%player%}
- on chat:
- set {_waited} to difference between {spam.%player%.lastused} and now
- if {_waited} is less than 1 seconds:
- message "&cPlease do not spam!"
- cancel event
- stop
- set {spam.%player%.lastused} to now
Add Comment
Please, Sign In to add comment