Advertisement
ReportCards

Untitled

Apr 11th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. command /clearchat:
  2. aliases: /cc, /clearc, /chatc
  3. permission: creation.clearchat
  4. trigger:
  5. loop 200 times:
  6. broadcast " "
  7. wait 10 ticks
  8. broadcast "<gray>Chat has been cleared by <aqua>%player%"
  9. command /lockchat:
  10. aliases: /lc, /lockc, /chatl
  11. permission: creation.lockchat
  12. trigger:
  13. set {locker} to "%player%"
  14. set {locked} to 1
  15.  
  16. broadcast "<gray>Chat has been locked by <aqua>%player%"
  17. command /unlockchat:
  18. aliases: /ulc, /ulockc, /chatul
  19. permission: creation.lockchat
  20. trigger:
  21. set {locked} to 0
  22.  
  23. broadcast "<gray>Chat has been unlocked by <aqua>%player%"
  24.  
  25. command /lockchat:
  26. aliases: /lc, /lockc, /chatl
  27. permission: creation.lockchat
  28. trigger:
  29. set {locker} to "%player%"
  30. set {locked} to 1
  31.  
  32. broadcast "<gray>Chat has been locked by <aqua>%player%"
  33. command /unlockchat:
  34. aliases: /ulc, /ulockc, /chatul
  35. permission: creation.lockchat
  36. trigger:
  37. set {locked} to 0
  38.  
  39. broadcast "<gray>Chat has been unlocked by <aqua>%player%"
  40. on chat:
  41.  
  42. if player has permission "creation.chatbypass":
  43. stop
  44. if {locked} is 1:
  45. cancel event
  46. message "<gray>Chat is currently locked by <aqua>%{locker}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement