Advertisement
ReportCards

Untitled

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