Advertisement
ReportCards

LockChat

Apr 11th, 2017
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. command /clearchat:
  2. aliases: /cc, /clearc, /chatc
  3. permission: creation.clearchat
  4. trigger:
  5. message "%nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% %nl% &7Chat Cleared By &8%player%"
  6.  
  7. command /lockchat:
  8. aliases: /lc, /lockc, /chatl
  9. permission: creation.lockchat
  10. trigger:
  11. set {locker} to "%player%"
  12. set {locked} to 1
  13.  
  14. broadcast "<gray>Chat has been locked by <aqua>%player%"
  15. command /unlockchat:
  16. aliases: /ulc, /ulockc, /chatul
  17. permission: creation.lockchat
  18. trigger:
  19. set {locked} to 0
  20.  
  21. broadcast "<gray>Chat has been unlocked by <aqua>%player%"
  22.  
  23. on chat:
  24.  
  25. if player has permission "creation.chatbypass":
  26. stop
  27. if {locked} is 1:
  28. cancel event
  29. message "<gray>Chat is currently locked by <aqua>%{locker}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement