Advertisement
ReportCards

Untitled

Apr 11th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. command /clearchat:
  2. aliases: /cc, /clearc, /chatc
  3. permission: creation.clearchat
  4. trigger:
  5. message "<gray>This command right now is disabled! Please help fix and post a reply with the clear chat command section fixed!"
  6.  
  7. command /lockchat:
  8. aliases: /lc, /lockc, /chatl
  9. permission: chat.lock.activate
  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: chat.lock.deactivate
  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 "chat.lock.bypass":
  26. stop
  27. if {locked} is 1:
  28. cancel event
  29. message "<gray>Chat is currently locked by <aqua>%{locker}%"
  30. on load:
  31. broadcast "<red>---- <gold>Loaded Lock Chat And Clear chat! <red>----"
  32. broadcast "<gold>/lockchat - Lock the chat! Use permission chat.lock.bypass to bypass the lock!"
  33. broadcast "<gold>/unlockchat - Unlock the chat!"
  34. broadcast "<red>/clearchat - Broke please show how to fix on the minehut forums post!"
  35. broadcast "<green>-----------------------------"
  36. broadcast "<gray>Made by ReportCards!"
  37. on unload:
  38. broadcast "<gold>Thanks for using my skript - ReportCards!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement