Guest User

ToggleChat

a guest
May 9th, 2013
1,238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. # ======================== #
  2. # Nazwa: ToggleChat
  3. # Autor: AramekPL
  4. # Wersja: 0.2
  5. # ======================== #
  6. # Zmiany:
  7. # Poprawione błędy bugi
  8.  
  9. # Nie tykać tego jak się nie znasz!
  10. command /chat <text>:
  11. permission: sk.chat
  12. trigger:
  13. if argument 1 is "off":
  14. set {chat.allowed} to false
  15. broadcast "<light red>Chat zostal wylaczony przez %player%"
  16. if argument 1 is "on":
  17. set {chat.allowed} to true
  18. broadcast "<light green>Chat zostal wlaczony przez %player%"
  19. on chat:
  20. if player has permission "sk.echat":
  21. stop
  22. else:
  23. if {chat.allowed} is false:
  24. cancel event
  25. send "<light red>Chat jest obecnie wylaczony!"
  26. stop
  27. if {chat.allowed} is true:
  28. stop
Advertisement
Add Comment
Please, Sign In to add comment