Neonowsky

[SK] ChatManager

Aug 28th, 2015
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. on chat:
  2. player has permission "chat.always":
  3. stop
  4. else:
  5. if {chat} is false:
  6. cancel event
  7. send "&c*** &eChat jest wylaczony &c***"
  8. command /chat [<text>]:
  9. trigger:
  10. arg is not set:
  11. send "&8-=-=-=-=-=-=-= &6CHAT &8=-=-=-=-=-=-=-"
  12. send "&6/chat on &8- &7wlacz chat"
  13. send "&6/chat off &8- &7wylacz chat"
  14. send "&6/chat clear &8- &7wyczysc chat"
  15. else:
  16. arg is "on" or "off" or "clear":
  17. player has permission "chat.command":
  18. arg is "on":
  19. if {chat} is true:
  20. send "&4Chat jest juz wlaczony."
  21. else:
  22. set {chat} to true
  23. loop 100 times:
  24. broadcast ""
  25. broadcast "&7Chat zostal &6wlaczony &7przez &6%player%"
  26. arg is "off":
  27. if {chat} is false:
  28. send "&4Chat jest juz wylaczony."
  29. else:
  30. set {chat} to false
  31. loop 100 times:
  32. broadcast ""
  33. broadcast "&7Chat zostal &6wylaczony &7przez &6%player%"
  34. arg is "clear":
  35. loop 100 times:
  36. broadcast ""
  37. broadcast "&7Chat zostal &6wyczyszczony &7przez &6%player%"
  38. else:
  39. send "&cNie masz uprawnien do tej komendy"
Advertisement
Add Comment
Please, Sign In to add comment