HeroseQ

HeroChat v.0.1

Nov 6th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. #HeroChat v.0.1 - By HeroseQ
  2.  
  3.  
  4. variables:
  5. {waited.chat} = false
  6. {socialspy.%player%} = false
  7. options:
  8. #menadżer chatu
  9. tag: [&eHero&2HC&r]
  10. wait.msg: &cPoczekaj 5 sekund zanim coś napiszesz !
  11. chat.admin.permission: chat.admin
  12. chat.no-delay.permission: chat.no-delay
  13. chat.off.msg: &4Globalny chat jest aktualnie wyłączony, nie możesz teraz nic pisać.
  14. chat.on.broadcast: &c%player% &ewłączył globalny chat
  15. chat.off.broadcast: &c%player% &ewyłączył globalny chat
  16. chat.cleared.broadcast: &eChat został wyczyszczony przez &6%player%
  17. #Prywatne wiadomości
  18. socialspy.pex: socialspy.admin
  19. socialspy.used.msg: &aWłączyłeś podglądywanie prywatnych wiadomości.
  20. socialspy.not.used.msg: &4Wyłączyłeś podglądywanie prywatnych wiadomości.
  21. #Menadżer chatu
  22.  
  23. on chat:
  24. if {chat} is false:
  25. cancel event:
  26. send "{@chat.off.msg}"
  27.  
  28. player has permissions "{@chat.no-delay.permission}":
  29. stop
  30. else:
  31. if {waited.chat} is false:
  32. set {waited.chat} to true
  33. wait 5 real seconds
  34. set {waited.chat} to false
  35. else:
  36. cancel event
  37. send "{@tag} - {@wait.msg}"
  38.  
  39.  
  40.  
  41. command /chat [<text>] [<text>]:
  42. trigger:
  43. player has permissions "{@chat.admin.permission}"
  44. send "&7----------&c&lCHAT&r&7----------"
  45. send "&e/chat clear - &7Czyszczenie chatu"
  46. send "&e/chat on - &7Wlaczanie chatu"
  47. send "&e/chat off - &7Wylaczanie chatu"
  48.  
  49.  
  50. arg 1 is "clear":
  51. loop 100 times:
  52. broadcast " "
  53. broadcast "{@chat.cleared.broadcast}"
  54.  
  55. arg 1 is "on":
  56. set {chat} to true
  57. broadcast "{@chat.on.broadcast}"
  58. arg 1 is "off":
  59. set {chat} to false
  60. broadcast "{@chat.off.broadcast}"
  61.  
  62.  
  63.  
  64. #Prywatne wiadomości
  65.  
  66. command /msg [<player>] [<text>]:
  67. aliases: /w, /pw, /pm
  68. triger:
  69. arg 1 is not "%player%":
  70. arg 1 is online:
  71. send "&6%player% &7> &6Ja &7>>&7%coloured arg 2%" to arg 1
  72. send "&6Ja&7> &6%arg 1% &7>>&7%coloured arg 2%" to arg 1
  73. loop all players:
  74. loop-player has permissions "{@socialspy.pex}":
  75. if {socialspy.%loop-player%} is true:
  76. send "&6%player&7> &6%arg 1% &7>>&7%coloured arg 2%"
  77. command /socialspy:
  78. trigger:
  79. player has permissions "{@socialspy.pex}":
  80. if {socialspy.%player%} is false:
  81. set {socialspy.%player%} to true
  82. send "{@socialspy.used.msg}"
  83. else:
  84. send "{@socialspy.not.used.msg}"
  85. set "{socialspy.%player%}" to false
Advertisement
Add Comment
Please, Sign In to add comment