Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on chat:
- chat message starts with "@"
- if {pingcooldown::%player's uuid%} isn't set:
- set {pingcooldown::%player's uuid%} to now
- if difference between {pingcooldown::%player's uuid%} and now is more than 60 seconds:
- set {pingcooldown::%player's uuid%} to now
- if "%subtext of message from index 0 to 1%" is "@":
- set {_p} to "%subtext of message from index 1 to (length of message)%" parsed as player
- loop all players:
- message contains "%loop-player%"
- if {reputation::%player's uuid%} is between 0 and 9:
- set {_rc} to "&7"
- if {reputation::%player's uuid%} is more than 9:
- set {_rc} to "&f"
- if {reputation::%player's uuid%} is less than 0:
- set {_rc} to "&7"
- if {reputation::%player's uuid%} is less than -9:
- set {_rc} to "&c"
- set {_firstpart} to "@%loop-player%"
- replace all "@" with "" in message
- replace all "%loop-player%" with "" in message
- if {rank::%player's uuid%} = "Prisoner":
- set message format to "&7&l.%{_rc}%%{reputation::%player's uuid%}% &6%player's display name%&8 |&7 %{cellN::%player's uuid%}%&8:&e %{_firstpart}% &7%message%"
- play sound "BLOCK_NOTE_BLOCK_PLING" at pitch 1 to loop-player
- stop
- if {rank::%player's uuid%} = "Warden":
- set message format to "&4&lW &c%player's display name%&f:&e %{_firstpart}% &f%message%"
- play sound "BLOCK_NOTE_BLOCK_PLING" at pitch 1 to loop-player
- stop
- if {rank::%player's uuid%} = "CO":
- play sound "BLOCK_NOTE_PLING" at pitch 1 to loop-player
- set message format to "&1&lCO &9%player's display name%&f:&e %{_firstpart}% &f%message%"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement