Guest User

Untitled

a guest
Feb 4th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. variables:
  2. {chatpower} = on
  3. on chat:
  4. if {chatpower} is off:
  5. if player doesn't have permission "essentialsmini.chatmenager":
  6. cancel event
  7. send "&4Nie mozesz pisac gdy chat jest wylaczony!"
  8. else:
  9. set message to "%message%"
  10. command /chat <text>:
  11. description: Zarzadzanie czatem
  12. usage: Napisz "/chat help" aby zobaczyc argumenty tej komendy
  13. trigger:
  14. if player has permission "essentialsmini.chatmenager":
  15. if arg is "help" or "h" or "?":
  16. message "&4Argumenty /chat:"
  17. message " "
  18. message "&a/chat clear - Czysci czat
  19. message "&a/chat clean - Czysci czat
  20. message "&a/chat off - Wylacza czat"
  21. message "&a/chat on - Wlacza czat"
  22. if arg is "on":
  23. if {chatpower} is "on" or "off":
  24. set {chatpower} to on
  25. broadcast "&aCzat zostal wlaczony przez &4%player%&4!"
  26. if arg is "off":
  27. if {chatpower} is "on" or "off":
  28. set {chat} to off
  29. broadcast "&4Czat zostal wylaczony przez &4%player%&4!"
  30. if arg is "clean" or "clear":
  31. loop 150 times:
  32. broadcast ""
  33. broadcast "&aCzat zostal wyczyszczony przez &4%player%&4!"
  34. else:
  35. send "&4Nie masz uprawnien do tego!"
Advertisement
Add Comment
Please, Sign In to add comment