Advertisement
hangtight

Staff Chat Skript

Apr 17th, 2020
2,605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.75 KB | None | 0 0
  1. # By hangtight :)
  2.  
  3. command /sc [<text>]:
  4.     permission: core.staff
  5.     permission message: &bNo Permission.
  6.     trigger:
  7.         if arg-1 is not set:
  8.             if {staffchat::%player%} is not set:
  9.                 set {staffchat::%player%} to true
  10.                 send "&aYou have toggled staff chat!"
  11.             else:
  12.                 delete {staffchat::%player%}
  13.                 send "&cYou have toggled staff chat!"
  14.         else:
  15.             loop all players:
  16.                 if loop-player has permission "core.staff":
  17.                     send "&b[S] &3[%world of player%&3] &r%player's display name%&7: &r%arg 1%" to loop-player
  18.  
  19. on chat:
  20.   if {staffchat::%player%} is set:
  21.     cancel event
  22.     loop all players:
  23.       if loop-player has permission "core.staff":
  24.         send "&b[S] &3[%world of player%&3] &r%player's display name%&7: &r%message%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement