knugi

Untitled

Mar 16th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.10 KB | None | 0 0
  1. options:
  2. permission: admintool
  3. nopermission: &6Nie posiadasz uprawnien.
  4. command /ban [<integer=1>]:
  5. trigger:
  6. if player has permission "{@permission}.ban":
  7. set {_strony} to rounded up (size of all players - 1) / 54
  8. if {_strony} is 0:
  9. stop
  10. if arg 1 is between 1 and {_strony}:
  11. open chest with 6 rows named "&9&lAdmin&3&lBan &8(&7%arg 1%&8)" to player
  12. wait 2 tick
  13. set {_max} to arg 1 * 53
  14. set {_min} to {_max} - 52
  15. loop all players:
  16. if "%loop-player%" is not "%player%":
  17. add loop-player to {_ap::*}
  18. set {_num} to size of {_ap::*}
  19. if (arg + 1) is smaller than or equal to {_strony}:
  20. set player's current inventory's slot 53 to paper named "&6Nastepna strona."
  21. set {_i} to 0
  22. loop {_max} times:
  23. loop-number is between {_min} and {_max}
  24. loop-number <= {_num}:
  25. set player's current inventory's slot {_i} to {_ap::%loop-number%}'s skull named "&c%{_ap::%loop-number%}%" with lore "&6Zbanuj gracza."
  26. add 1 to {_i}
  27. stop
  28. send "&c* {@nopermission}"
  29. command /mute [<integer=1>]:
  30. trigger:
  31. if player has permission "{@permission}.mute":
  32. set {_strony} to rounded up (size of all players - 1) / 54
  33. if {_strony} is 0:
  34. stop
  35. if arg 1 is between 1 and {_strony}:
  36. open chest with 6 rows named "&9&lAdmin&3Tempmute &8(&7%arg 1%&8)" to player
  37. wait 2 tick
  38. set {_max} to arg 1 * 53
  39. set {_min} to {_max} - 52
  40. loop all players:
  41. if "%loop-player%" is not "%player%":
  42. add loop-player to {_ap::*}
  43. set {_num} to size of {_ap::*}
  44. if (arg 1 + 1) is smaller than or equal to {_strony}:
  45. set player's current inventory's slot 53 to paper named "&6Nastepna strona."
  46. set {_i} to 0
  47. loop {_max} times:
  48. loop-number is between {_min} and {_max}
  49. loop-number <= {_num}:
  50. set player's current inventory's slot {_i} to {_ap::%loop-number%}'s skull named "&c%{_ap::%loop-number%}%" with lore "&6Zmutuj tego gracza na czas."
  51. add 1 to {_i}
  52. stop
  53. send "&c* {@nopermission}"
  54. command /kick [<integer=1>]:
  55. trigger:
  56. if player has permission "{@permission}.kick":
  57. set {_strony} to rounded up (size of all players - 1) / 54
  58. if {_strony} is 0:
  59. stop
  60. if arg 1 is between 1 and {_strony}:
  61. open chest with 6 rows named "&9&lAdmin&3&lKick &8(&7%arg 1%&8)" to player
  62. wait 2 tick
  63. set {_max} to arg 1 * 53
  64. set {_min} to {_max} - 52
  65. loop all players:
  66. if "%loop-player%" is not "%player%":
  67. add loop-player to {_ap::*}
  68. set {_num} to size of {_ap::*}
  69. if (arg + 1) is smaller than or equal to {_strony}:
  70. set player's current inventory's slot 53 to paper named "&6Nastepna strona."
  71. set {_i} to 0
  72. loop {_max} times:
  73. loop-number is between {_min} and {_max}
  74. loop-number <= {_num}:
  75. set player's current inventory's slot {_i} to {_ap::%loop-number%}'s skull named "&c%{_ap::%loop-number%}%" with lore "&6Zbanuj gracza."
  76. add 1 to {_i}
  77. stop
  78. send "&c* {@nopermission}"
  79. command /tempban [<integer=1>]:
  80. trigger:
  81. if player has permission "{@permission}.tempban":
  82. set {_strony} to rounded up (size of all players - 1) / 54
  83. if {_strony} is 0:
  84. stop
  85. if arg 1 is between 1 and {_strony}:
  86. open chest with 6 rows named "&9&lAdmin&3Tempban &8(&7%arg 1%&8)" to player
  87. wait 2 tick
  88. set {_max} to arg 1 * 53
  89. set {_min} to {_max} - 52
  90. loop all players:
  91. if "%loop-player%" is not "%player%":
  92. add loop-player to {_ap::*}
  93. set {_num} to size of {_ap::*}
  94. if (arg 1 + 1) is smaller than or equal to {_strony}:
  95. set player's current inventory's slot 53 to paper named "&6Nastepna strona."
  96. set {_i} to 0
  97. loop {_max} times:
  98. loop-number is between {_min} and {_max}
  99. loop-number <= {_num}:
  100. set player's current inventory's slot {_i} to {_ap::%loop-number%}'s skull named "&c%{_ap::%loop-number%}%" with lore "&6Zbanuj gracza na czas."
  101. add 1 to {_i}
  102. stop
  103. send "&c* {@nopermission}"
  104. command /unban [<integer=1>] [<text>]:
  105. trigger:
  106. if player has permission "{@permission}.unban":
  107. if arg 2 is not set:
  108. open chest with 1 rows named "&9&lAdmin&3Unban" to player
  109. wait 2 tick
  110. set player's current inventory's slot 0 to paper named "&6Unban" with lore "&aOdbanuj gracza zbanowanego na zawsze.||&6Zbanowani gracze: &c%size of {admintool::ban::*}%"
  111. set player's current inventory's slot 1 to paper named "&6Unban" with lore "&aOdbanuj gracza zbanowanego na czas.||&6Zbanowani gracze: &c%size of {admintool::tempban::*}%"
  112. stop
  113. if arg 2 is "ban":
  114. set {_strony} to rounded up size of {admintool::ban::*} / 54
  115. if {_strony} is 0:
  116. stop
  117. if arg 1 is between 1 and {_strony}:
  118. open chest with 6 rows named "&9&lAdmin&3Unban &8(&7%arg 1%&8)" to player
  119. wait 2 tick
  120. set {_max} to arg 1 * 53
  121. set {_min} to {_max} - 52
  122. set {_num} to size of {admintool::ban::*}
  123. if (arg 1 + 1) is smaller than or equal to {_strony}:
  124. set player's current inventory's slot 53 to paper named "&6Nastepna strona."
  125. set {_i} to 0
  126. set {_t} to 1
  127. loop {admintool::ban::*}:
  128. {_t} is between {_min} and {_max}:
  129. {_t} <= {_num}:
  130. set {_p} to {admintool::ban::%loop-index%}
  131. replace all "%nl%" with "||" in {_p}
  132. set player's current inventory's slot {_i} to feather named "&6%loop-index%" with lore "&aOdbanuj gracza %loop-index%||||%{_p}%"
  133. add 1 to {_i}
  134. add 1 to {_t}
  135. if arg 2 is "tempban":
  136. set {_strony} to rounded up size of {admintool::tempban::*} / 54
  137. if {_strony} is 0:
  138. stop
  139. if arg 1 is between 1 and {_strony}:
  140. open chest with 6 rows named "&9&lAdmin&3Untempban &8(&7%arg 1%&8)" to player
  141. wait 2 tick
  142. set {_max} to arg 1 * 53
  143. set {_min} to {_max} - 52
  144. set {_num} to size of {admintool::tempban::*}
  145. if (arg 1 + 1) is smaller than or equal to {_strony}:
  146. set player's current inventory's slot 53 to paper named "&6Nastepna strona."
  147. set {_i} to 0
  148. set {_t} to 1
  149. loop {admintool::tempban::*}:
  150. {_t} is between {_min} and {_max}:
  151. {_t} <= {_num}:
  152. set player's current inventory's slot {_i} to feather named "&6%loop-index%" with lore "&aOdbanuj gracza %loop-index%"
  153. add 1 to {_i}
  154. add 1 to {_t}
  155. stop
  156. send "&c* {@nopermission}"
  157.  
  158. #----- Inventory Click -----"
  159. on inventory click:
  160. if "%uncoloured inventory name of player's current inventory%" contains "AdminKick":
  161. if slot is smaller than 0:
  162. stop
  163. cancel event
  164. if player's current inventory's slot slot is not air:
  165. if player's current inventory's slot slot is paper:
  166. if name of player's current inventory's slot slot is "&6Nastepna strona.":
  167. set {_i} to "%uncoloured inventory name of player's current inventory%"
  168. replace all "AdminBan (" with "" in {_i}
  169. replace all ")" with "" in {_i}
  170. set {_i} to {_i} parsed as integer
  171. close player's inventory
  172. wait 2 tick
  173. execute player command "ban %{_i} + 1%"
  174. stop
  175. set {_player} to "%uncoloured name of player's current inventory's slot slot%" parsed as offlineplayer
  176. close player's inventory
  177. wait 2 tick
  178. open chest with 1 rows named "&9Kickujesz: &3%{_player}%" to player
  179. wait 2 tick
  180. #Tutaj dodajesz powody kickowanie."
  181. set player's current inventory's slot 0 to paper named "&6Spam" with lore "&aKickujesz gracza %{_player}% za spam."
  182. set player's current inventory's slot 1 to paper named "&6Bo tak" with lore "&aKickujesz gracza %{_player}% za bo tak."
  183. set player's current inventory's slot 2 to paper named "&6Bo nie" with lore "&aKickujesz gracza %{_player}% za bo nie."
  184. stop
  185. stop
  186. if "%uncoloured inventory name of player's current inventory%" contains "Kickujesz:":
  187. if slot is smaller than 0:
  188. stop
  189. cancel event
  190. if player's current inventory's slot slot is not air:
  191. set {_player} to "%uncoloured inventory name of player's current inventory%"
  192. replace all "Kickujesz: " with "" in {_player}
  193. set {_player} to {_player} parsed as offlineplayer
  194. kick {_player} due to "&cZostales wyrzucony za:%nl%%nl% &6%name of player's current inventory's slot slot%"
  195. send "&c* &7Wyrzuciles gracza &6%{_player}%"
  196. close player's inventory
  197. stop
  198. stop
  199. if "%uncoloured inventory name of player's current inventory%" contains "AdminBan":
  200. if slot is smaller than 0:
  201. stop
  202. cancel event
  203. if player's current inventory's slot slot is not air:
  204. if player's current inventory's slot slot is paper:
  205. if name of player's current inventory's slot slot is "&6Nastepna strona.":
  206. set {_i} to "%uncoloured inventory name of player's current inventory%"
  207. replace all "AdminBan (" with "" in {_i}
  208. replace all ")" with "" in {_i}
  209. set {_i} to {_i} parsed as integer
  210. close player's inventory
  211. wait 2 tick
  212. execute player command "ban %{_i} + 1%"
  213. stop
  214. set {_player} to "%uncoloured name of player's current inventory's slot slot%" parsed as offlineplayer
  215. close player's inventory
  216. wait 2 tick
  217. open chest with 1 rows named "&9Banujesz: &3%{_player}%" to player
  218. wait 2 tick
  219. #Tutaj dodajesz powody banowania."
  220. set player's current inventory's slot 0 to paper named "&6Cheaty" with lore "&aZbanujesz gracza %{_player}% za cheaty."
  221. set player's current inventory's slot 1 to paper named "&6Slowa" with lore "&aZbanujesz gracza %{_player}% za slowa."
  222. set player's current inventory's slot 2 to paper named "&6Afk" with lore "&aZbanujesz gracza %{_player}% za afk."
  223. stop
  224. stop
  225. if "%uncoloured inventory name of player's current inventory%" contains "Banujesz:":
  226. if slot is smaller than 0:
  227. stop
  228. cancel event
  229. if player's current inventory's slot slot is not air:
  230. set {_player} to "%uncoloured inventory name of player's current inventory%"
  231. replace all "Banujesz: " with "" in {_player}
  232. set {_player} to {_player} parsed as offlineplayer
  233. kick {_player} due to "&cZostales zbanowany za:%nl%%nl% &6%name of player's current inventory's slot slot%"
  234. set {admintool::ban::%{_player}%} to "&cZostales zbanowany za:%nl%%nl% &6%name of player's current inventory's slot slot%"
  235. send "&c* &7Zbanowales gracza &6%{_player}%"
  236. close player's inventory
  237. stop
  238. stop
  239. if "%uncoloured inventory name of player's current inventory%" contains "AdminTempban":
  240. if slot is smaller than 0:
  241. stop
  242. cancel event
  243. if player's current inventory's slot slot is not air:
  244. if player's current inventory's slot slot is paper:
  245. if name of player's current inventory's slot slot is "&6Nastepna strona.":
  246. set {_i} to "%uncoloured inventory name of player's current inventory%"
  247. replace all "AdminTempban (" with "" in {_i}
  248. replace all ")" with "" in {_i}
  249. set {_i} to {_i} parsed as integer
  250. close player's inventory
  251. wait 2 tick
  252. execute player command "unban %{_i} + 1% tempban"
  253. stop
  254. set {_player} to "%uncoloured name of player's current inventory's slot slot%" parsed as offlineplayer
  255. close player's inventory
  256. wait 2 tick
  257. open chest with 1 rows named "&9&lTempczas: &8(&7%{_player}%&8)" to player
  258. wait 2 tick
  259. set player's current inventory's slot 0 to paper named "&7Informacja" with lore "&6Wybierz licznik czasu."
  260. set player's current inventory's slot 1 to feather named "&cSekundy"
  261. set player's current inventory's slot 2 to feather named "&cMinuty"
  262. set player's current inventory's slot 3 to feather named "&cGodziny"
  263. set player's current inventory's slot 4 to feather named "&cDni"
  264. stop
  265. stop
  266. if "%uncoloured inventory name of player's current inventory%" contains "Tempczas:":
  267. if slot is smaller than 0:
  268. stop
  269. cancel event
  270. if player's current inventory's slot slot is not air:
  271. if slot is 1:
  272. set {_n} to "%coloured inventory name of player's current inventory%"
  273. replace all ":" in {_n} with ""
  274. set {_player} to "%uncoloured inventory name of player's current inventory%"
  275. replace all "Tempczas: (" with "" in {_player}
  276. replace all ")" with "" in {_player}
  277. close player's inventory
  278. wait 2 tick
  279. open chest with 6 rows named "%coloured {_n}%" to player
  280. set {_i} to 0
  281. loop 54 times:
  282. set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZbanuj gracza &6&o%{_player}% &ana:||&c* &b%loop-number% sekund"
  283. add 1 to {_i}
  284. stop
  285. if slot is 2:
  286. set {_n} to "%coloured inventory name of player's current inventory%"
  287. replace all ":" in {_n} with ""
  288. set {_player} to "%uncoloured inventory name of player's current inventory%"
  289. replace all "Tempczas: (" with "" in {_player}
  290. replace all ")" with "" in {_player}
  291. close player's inventory
  292. wait 2 tick
  293. open chest with 6 rows named "%coloured {_n}%" to player
  294. set {_i} to 0
  295. loop 54 times:
  296. set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZbanuj gracza &6&o%{_player}% &ana:||&c* &b%loop-number% minut"
  297. add 1 to {_i}
  298. stop
  299. if slot is 3:
  300. set {_n} to "%coloured inventory name of player's current inventory%"
  301. replace all ":" in {_n} with ""
  302. set {_player} to "%uncoloured inventory name of player's current inventory%"
  303. replace all "Tempczas: (" with "" in {_player}
  304. replace all ")" with "" in {_player}
  305. close player's inventory
  306. wait 2 tick
  307. open chest with 6 rows named "%coloured {_n}%" to player
  308. set {_i} to 0
  309. loop 24 times:
  310. set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZbanuj gracza &6&o%{_player}% &ana:||&c* &b%loop-number% godzin"
  311. add 1 to {_i}
  312. stop
  313. if slot is 4:
  314. set {_n} to "%coloured inventory name of player's current inventory%"
  315. replace all ":" in {_n} with ""
  316. set {_player} to "%uncoloured inventory name of player's current inventory%"
  317. replace all "Tempczas: (" with "" in {_player}
  318. replace all ")" with "" in {_player}
  319. close player's inventory
  320. wait 2 tick
  321. open chest with 6 rows named "%coloured {_n}%" to player
  322. set {_i} to 0
  323. set player's current inventory's slot 53 to paper named "&6Wiecej liczb"
  324. loop 53 times:
  325. set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZbanuj gracza &6&o%{_player}% &ana:||&c* &b%loop-number% dni"
  326. add 1 to {_i}
  327. stop
  328. stop
  329. stop
  330. if "%uncoloured inventory name of player's current inventory%" contains "Tempczas":
  331. if slot is smaller than 0:
  332. stop
  333. cancel event
  334. if player's current inventory's slot slot is not air:
  335. if player's current inventory's slot slot is paper:
  336. if name of player's current inventory's slot slot is "&6Wiecej liczb":
  337. set {_n} to coloured inventory name of player's current inventory
  338. set {_player} to "%uncoloured inventory name of player's current inventory%"
  339. replace all "Tempczas (" with "" in {_player}
  340. replace all ")" with "" in {_player}
  341. close player's inventory
  342. wait 2 tick
  343. open chest with 6 rows named "%coloured {_n}%" to player
  344. set {_i} to 0
  345. set {_t} to 54
  346. loop 54 times:
  347. set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZbanuj gracza &6&o%{_player}% &ana:||&c* %{_t}% dni"
  348. add 1 to {_t}
  349. add 1 to {_i}
  350. stop
  351. set {_l::*} to lore of player's current inventory's slot slot split at "||"
  352. set {_player} to uncoloured {_l::1}
  353. replace all "Zbanuj gracza " with "" in {_player}
  354. replace all " na:" with "" in {_player}
  355. set {_player} to {_player} parsed as offlineplayer
  356. set {_l} to uncoloured {_l::2}
  357. replace all "* " with "" in {_l}
  358. set {_i} to first index of " " in {_l} - 1 characters of {_l}
  359. set {_c} to last (length of {_l} - first index of " " in {_l}) characters of uncoloured {_l}
  360. set {admintool::tempban::%{_player}%::time} to now
  361. if {_c} is "sekund":
  362. add "%{_i}% seconds" parsed as time span to {admintool::tempban::%{_player}%::time}
  363. set {admintool::tempban::%{_player}%} to "&cZostales zbanowany!%nl%&aBan wygasa:%nl%%nl%&6%{admintool::tempban::%{_player}%::time}%"
  364. if {_c} is "minut":
  365. add "%{_i}% minutes" parsed as time span to {admintool::tempban::%{_player}%::time}
  366. set {admintool::tempban::%{_player}%} to "&cZostales zbanowany!%nl%&aBan wygasa:%nl%%nl%&6%{admintool::tempban::%{_player}%::time}%"
  367. if {_c} is "godzin":
  368. add "%{_i}% hours" parsed as time span to {admintool::tempban::%{_player}%::time}
  369. set {admintool::tempban::%{_player}%} to "&cZostales zbanowany!%nl%&aBan wygasa:%nl%%nl%&6%{admintool::tempban::%{_player}%::time}%"
  370. if {_c} is "dni":
  371. add "%{_i}% days" parsed as time span to {admintool::tempban::%{_player}%::time}
  372. set {admintool::tempban::%{_player}%} to "&cZostales zbanowany!%nl%&aBan wygasa:%nl%%nl%&6%{admintool::tempban::%{_player}%::time}%"
  373. kick {_player} due to "%{admintool::tempban::%{_player}%}%"
  374. close player's inventory
  375. stop
  376. stop
  377. if "%uncoloured inventory name of player's current inventory%" contains "AdminTempmute":
  378. if slot is smaller than 0:
  379. stop
  380. cancel event
  381. if player's current inventory's slot slot is not air:
  382. if player's current inventory's slot slot is paper:
  383. if name of player's current inventory's slot slot is "&6Nastepna strona.":
  384. set {_i} to "%uncoloured inventory name of player's current inventory%"
  385. replace all "AdminTempmute (" with "" in {_i}
  386. replace all ")" with "" in {_i}
  387. set {_i} to {_i} parsed as integer
  388. close player's inventory
  389. wait 2 tick
  390. execute player command "mute %{_i} + 1%"
  391. stop
  392. set {_player} to "%uncoloured name of player's current inventory's slot slot%"
  393. close player's inventory
  394. wait 2 tick
  395. open chest with 1 rows named "&9&lTempmute: &8(&7%{_player}%&8)" to player
  396. wait 2 tick
  397. set player's current inventory's slot 0 to paper named "&7Informacja" with lore "&6Wybierz licznik czasu."
  398. set player's current inventory's slot 1 to feather named "&cSekundy"
  399. set player's current inventory's slot 2 to feather named "&cMinuty"
  400. set player's current inventory's slot 3 to feather named "&cGodziny"
  401. stop
  402. stop
  403. if "%uncoloured inventory name of player's current inventory%" contains "Tempmute:":
  404. if slot is smaller than 0:
  405. stop
  406. cancel event
  407. if player's current inventory's slot slot is not air:
  408. if slot is 1:
  409. set {_n} to "%coloured inventory name of player's current inventory%"
  410. replace all ":" in {_n} with ""
  411. set {_player} to "%uncoloured inventory name of player's current inventory%"
  412. replace all "Tempmute: (" with "" in {_player}
  413. replace all ")" with "" in {_player}
  414. close player's inventory
  415. wait 2 tick
  416. open chest with 6 rows named "%coloured {_n}%" to player
  417. set {_i} to 0
  418. loop 54 times:
  419. set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZmutuj gracza &6&o%{_player}% &ana:||&c* &b%loop-number% sekund"
  420. add 1 to {_i}
  421. stop
  422. if slot is 2:
  423. set {_n} to "%coloured inventory name of player's current inventory%"
  424. replace all ":" in {_n} with ""
  425. set {_player} to "%uncoloured inventory name of player's current inventory%"
  426. replace all "Tempmute: (" with "" in {_player}
  427. replace all ")" with "" in {_player}
  428. close player's inventory
  429. wait 2 tick
  430. open chest with 6 rows named "%coloured {_n}%" to player
  431. set {_i} to 0
  432. loop 54 times:
  433. set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZmutuj gracza &6&o%{_player}% &ana:||&c* &b%loop-number% minut"
  434. add 1 to {_i}
  435. stop
  436. if slot is 3:
  437. set {_n} to "%coloured inventory name of player's current inventory%"
  438. replace all ":" in {_n} with ""
  439. set {_player} to "%uncoloured inventory name of player's current inventory%"
  440. replace all "Tempmute: (" with "" in {_player}
  441. replace all ")" with "" in {_player}
  442. close player's inventory
  443. wait 2 tick
  444. open chest with 6 rows named "%coloured {_n}%" to player
  445. set {_i} to 0
  446. loop 24 times:
  447. set player's current inventory's slot {_i} to clock named "&cCzas" with lore "&aZmutuj gracza &6&o%{_player}% &ana:||&c* &b%loop-number% godzin"
  448. add 1 to {_i}
  449. stop
  450. stop
  451. stop
  452. if "%uncoloured inventory name of player's current inventory%" contains "Tempmute":
  453. if slot is smaller than 0:
  454. stop
  455. cancel event
  456. if player's current inventory's slot slot is not air:
  457. set {_l::*} to lore of player's current inventory's slot slot split at "||"
  458. set {_player} to uncoloured {_l::1}
  459. replace all "Zmutuj gracza " with "" in {_player}
  460. replace all " na:" with "" in {_player}
  461. set {_player} to {_player} parsed as offlineplayer
  462. set {_l} to uncoloured {_l::2}
  463. replace all "* " with "" in {_l}
  464. set {_i} to first index of " " in {_l} - 1 characters of {_l}
  465. send "%{_i}%"
  466. set {_c} to last (length of {_l} - first index of " " in {_l}) characters of uncoloured {_l}
  467. send "%{_c}%"
  468. set {admintool::tempmute::%{_player}%} to now
  469. if {_c} is "sekund":
  470. add "%{_i}% seconds" parsed as time span to {admintool::tempmute::%{_player}%}
  471. if {_c} is "minut":
  472. add "%{_i}% minutes" parsed as time span to {admintool::tempmute::%{_player}%}
  473. if {_c} is "godzin":
  474. add "%{_i}% hours" parsed as time span to {admintool::tempmute::%{_player}%}
  475. if {_c} is "dni":
  476. add "%{_i}% days" parsed as time span to {admintool::tempmute::%{_player}%}
  477. close player's inventory
  478. stop
  479. stop
  480. if "%uncoloured inventory name of player's current inventory%" contains "AdminUnban":
  481. if slot is smaller than 0:
  482. stop
  483. cancel event
  484. if player's current inventory's slot slot is not air:
  485. if "%uncoloured inventory name of player's current inventory%" doesn't contain "(":
  486. if slot is 0:
  487. close player's inventory
  488. wait 2 tick
  489. execute player command "unban 1 ban"
  490. stop
  491. if slot is 1:
  492. close player's inventory
  493. wait 2 tick
  494. execute player command "unban 1 tempban"
  495. stop
  496. stop
  497. if player's current inventory's slot slot is paper:
  498. if name of player's current inventory's slot slot is "&6Nastepna strona.":
  499. set {_i} to "%uncoloured inventory name of player's current inventory%"
  500. replace all "AdminUnban (" with "" in {_i}
  501. replace all ")" with "" in {_i}
  502. set {_i} to {_i} parsed as integer
  503. send "%{_i}%"
  504. close player's inventory
  505. wait 2 tick
  506. execute player command "unban %{_i} + 1% ban"
  507. stop
  508. set {_player} to "%uncoloured name of player's current inventory's slot slot%"
  509. clear {admintool::ban::%{_player}%}
  510. send "&c* &7Odbanowales gracza &6%{_player}%"
  511. close player's inventory
  512. stop
  513. stop
  514. if "%uncoloured inventory name of player's current inventory%" contains "AdminUntempban":
  515. if slot is smaller than 0:
  516. stop
  517. cancel event
  518. if player's current inventory's slot slot is not air:
  519. if player's current inventory's slot slot is paper:
  520. if name of player's current inventory's slot slot is "&6Nastepna strona.":
  521. set {_i} to "%uncoloured inventory name of player's current inventory%"
  522. replace all "AdminUntempban (" with "" in {_i}
  523. replace all ")" with "" in {_i}
  524. set {_i} to {_i} parsed as integer
  525. close player's inventory
  526. wait 2 tick
  527. execute player command "unban %{_i} + 1% tempban"
  528. stop
  529. set {_player} to "%uncoloured name of player's current inventory's slot slot%"
  530. clear {admintool::tempban::%{_player}%}
  531. send "&c* &7Odbanowales gracza &6%{_player}%"
  532. close player's inventory
  533. stop
  534. stop
  535. #----- Pozostale Eventy ----"
  536. on connect:
  537. if {admintool::ban::%player%} is set:
  538. kick player due to "%coloured {admintool::ban::%player%}%"
  539. stop
  540. if {admintool::tempban::%player%} is set:
  541. if now is larger than {admintool::tempban::%player%::time}:
  542. clear {admintool::tempban::%player%::time}
  543. clear {admintool::tempban::%player%}
  544. stop
  545. kick player due to "%coloured {admintool::tempban::%player%}%"
  546. on chat:
  547. if {admintool::tempmute::%player%} is set:
  548. if now is larger than {admintool::tempmute::%player%}:
  549. clear {admintool::tempmute::%player%}
  550. stop
  551. cancel event
  552. send "&c* Nie mozesz pisac. Odblokowane zostanie: &6%{admintool::tempmute::%player%}%"
  553. #-------- Skrypt tworzony przez Knugi -------#
Advertisement
Add Comment
Please, Sign In to add comment