bed_the_skripter

Staffchat [skript]

Jul 16th, 2022
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. on load:
  2. set {staffchat} to false
  3.  
  4. command /staffchat:
  5. permission: sc.chat.toggle
  6. trigger:
  7. if {staffchat} is false:
  8. set {staffchat} to true
  9. message "&c[&6StaffChat&c] &7Staff chat &aenabled&7!" to player
  10. else if {staffchat} is true:
  11. set {staffchat} to false
  12. message "&c[&6StaffChat&c] &7Staff chat &cdisabled&7!" to player
  13.  
  14. on chat:
  15. if {staffchat} is true:
  16. loop all players:
  17. if loop-player has permission "sc.chat":
  18. cancel event
  19. message "&c[&6StaffChat&c] &7%player% › %message%" to loop-player
  20.  
Advertisement
Add Comment
Please, Sign In to add comment