Advertisement
Guest User

DarkCraft

a guest
Dec 10th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.23 KB | None | 0 0
  1. #-----------------#
  2. # 2k-Chat #
  3. # Zelusiowy #
  4. #-----------------#
  5. # Zakaaz #
  6. # kopiowania #
  7. #-----------------#
  8. # v.1.2 #
  9. #-----------------#
  10.  
  11.  
  12.  
  13. # Dostepne permissje do skryptu/komendy :
  14.  
  15. # 2k-chat.on - komenda /chat on
  16. # 2k-chat.off - komenda /chat off
  17. # 2k-chat.clear - komenda /chat clear
  18. # 2k-chat.write - pozwala na pisanie przy wylaczonym czacie
  19. # 2k-chat.write2 - pozwala na pisanie zawsze i ciągle
  20.  
  21.  
  22. options:
  23. tag: &bDark&c&lCraft # Nazwa Servera
  24. ilesekund: 5 # Co ile sekund bedzie mozna pisac
  25.  
  26. variables:
  27. {chat} = true
  28.  
  29. command /chat [<text>]:
  30. trigger:
  31. if arg 1 is not set:
  32. send "&8######## &72k-Chat &8######## "
  33. send "&6/chat on &7- wlacza chat"
  34. send "&6/chat off &7- wylacza chat"
  35. send "&6/chat clear &7- czysci chat"
  36. send " "
  37. send "&8----------------------------- "
  38. send " "
  39. send "&6Autor: &7Zelusiowy"
  40. if arg 1 is "on":
  41. if {chat} is false:
  42. if player has permission "2k-chat.on":
  43. set {chat} to true
  44. broadcast ""
  45. broadcast " {@tag}"
  46. broadcast "&7Chat zostal &aWlaczony"
  47. broadcast ""
  48. stop
  49. else:
  50. send "&7Nie masz &auprawnienia&7 do tej komendy !"
  51. stop
  52. else:
  53. send "&7Chat jest juz &aWlaczony"
  54. stop
  55. if arg 1 is "off":
  56. if {chat} is true:
  57. if player has permission "2k-chat.off":
  58. set {chat} to false
  59. broadcast ""
  60. broadcast " {@tag}"
  61. broadcast "&7Chat zostal &aWylaczony"
  62. broadcast ""
  63. stop
  64. else:
  65. send "&7Nie masz &auprawnienia&7 do tej komendy !"
  66. stop
  67. else:
  68. send "&7Chat jest juz &aWylaczony"
  69. stop
  70. if arg 1 is "clear":
  71. if player has permission "2k-chat.clear":
  72. broadcast ""
  73. broadcast ""
  74. broadcast ""
  75. broadcast ""
  76. broadcast ""
  77. broadcast ""
  78. broadcast ""
  79. broadcast ""
  80. broadcast ""
  81. broadcast ""
  82. broadcast ""
  83. broadcast ""
  84. broadcast ""
  85. broadcast ""
  86. broadcast ""
  87. broadcast ""
  88. broadcast ""
  89. broadcast ""
  90. broadcast ""
  91. broadcast ""
  92. broadcast ""
  93. broadcast ""
  94. broadcast ""
  95. broadcast ""
  96. broadcast ""
  97. broadcast ""
  98. broadcast ""
  99. broadcast ""
  100. broadcast ""
  101. broadcast ""
  102. broadcast ""
  103. broadcast ""
  104. broadcast ""
  105. broadcast ""
  106. broadcast ""
  107. broadcast ""
  108. broadcast ""
  109. broadcast ""
  110. broadcast ""
  111. broadcast ""
  112. broadcast ""
  113. broadcast ""
  114. broadcast ""
  115. broadcast ""
  116. broadcast ""
  117. broadcast ""
  118. broadcast ""
  119. broadcast ""
  120. broadcast ""
  121. broadcast ""
  122. broadcast ""
  123. broadcast ""
  124. broadcast ""
  125. broadcast ""
  126. broadcast ""
  127. broadcast ""
  128. broadcast ""
  129. broadcast ""
  130. broadcast ""
  131. broadcast ""
  132. broadcast ""
  133. broadcast ""
  134. broadcast ""
  135. broadcast ""
  136. broadcast ""
  137. broadcast ""
  138. broadcast ""
  139. broadcast ""
  140. broadcast ""
  141. broadcast ""
  142. broadcast ""
  143. broadcast ""
  144. broadcast ""
  145. broadcast ""
  146. broadcast ""
  147. broadcast ""
  148. broadcast ""
  149. broadcast ""
  150. broadcast ""
  151. broadcast ""
  152. broadcast ""
  153. broadcast ""
  154. broadcast ""
  155. broadcast ""
  156. broadcast ""
  157. broadcast ""
  158. broadcast ""
  159. broadcast ""
  160. broadcast ""
  161. broadcast ""
  162. broadcast ""
  163. broadcast ""
  164. broadcast ""
  165. broadcast ""
  166. broadcast ""
  167. broadcast ""
  168. broadcast ""
  169. broadcast ""
  170. broadcast ""
  171. broadcast ""
  172. broadcast ""
  173. broadcast ""
  174. broadcast ""
  175. broadcast ""
  176. broadcast ""
  177. broadcast ""
  178. broadcast ""
  179. broadcast " {@tag}"
  180. broadcast "&7Chat zostal &aWyczyszczony"
  181. broadcast ""
  182. stop
  183. else:
  184. send "&7Nie masz &auprawnienia&7 do tej komendy !"
  185. stop
  186. on chat:
  187. if {chat} is false:
  188. if player has permission "2k-chat.write":
  189. stop
  190. else:
  191. cancel event
  192. send "&7Chat jest aktualnie &aWylaczony!"
  193. stop
  194. else:
  195. if player has permission "2k-chat.write2":
  196. stop
  197. set {_waited} to difference between {2k-chat.%player%.spam} and now
  198. if {_waited} is less than 3 real seconds seconds:
  199. send "&7Nastepna&a wiadomosc&7 bedziesz mogl wyslac za &c{@3} sekundy"
  200. cancel event
  201. stop
  202. set {2k-chat.%player%.spam} to now
  203. stop
  204. on chat:
  205. replace all "kurwa" with "k***a" in the message
  206. replace all "chuj" with "c**j" in the message
  207. replace all "pierdolony" with "p********y" in the message
  208. replace all "pedal" with "p***l" in the message
  209. replace all "gej" with "g*j" in the message
  210. replace all "suka" with "s**a" in the message
  211. replace all "cipa" with "c**a" in the message
  212. replace all "dupa" with "d**a" in the message
  213. replace all "pierdolona" with "pi*******a" in the message
  214. replace all "pojebalo" with "p*****lo" in the message
  215. replace all "zajebe cie" with "z****e cie" in the message
  216. replace all "debil" with "d***l" in the message
  217. on chat:
  218. if player is not op:
  219. replace all "A" with "a" in the message
  220. replace all "B" with "b" in the message
  221. replace all "C" with "c" in the message
  222. replace all "D" with "d" in the message
  223. replace all "E" with "e" in the message
  224. replace all "F" with "f" in the message
  225. replace all "G" with "g" in the message
  226. replace all "H" with "h" in the message
  227. replace all "I" with "i" in the message
  228. replace all "J" with "j" in the message
  229. replace all "K" with "k" in the message
  230. replace all "L" with "l" in the message
  231. replace all "M" with "m" in the message
  232. replace all "N" with "n" in the message
  233. replace all "O" with "o" in the message
  234. replace all "P" with "p" in the message
  235. replace all "R" with "r" in the message
  236. replace all "S" with "s" in the message
  237. replace all "T" with "t" in the message
  238. replace all "U" with "u" in the message
  239. replace all "W" with "w" in the message
  240. replace all "Y" with "y" in the message
  241. replace all "Z" with "z" in the message
  242. on chat:
  243. replace all "wbijac na moj server" with "mc.darkcraft.pl" in the message
  244. replace all "IP mojego servera" with "mc.darkcraft.pl" in the message
  245. replace all "zapraszam na moj server" with "mc.darkcraft.pl" in the message
  246. replace all "zapraszam na server mojego kolegi" with "mc.darkcraft.pl" in the message
  247. replace all "moj server IP:" with "mc.darkcraft.pl" in the message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement