Cool_Colton

Leaderboard

Jul 18th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.57 KB | None | 0 0
  1. on death of player:
  2. if {%player's uuid%::lastattacker} is set:
  3. if {%player's uuid%::lastattacker} is not "null":
  4. add 1 to {kills::%{%player's uuid%::lastattacker}%}
  5. add 1 to {deaths::%player's uuid%}
  6. set death message to "%{%player's uuid%::lastattackers}% has killed %player%!"
  7. cancel item drops
  8.  
  9. on damage of a player:
  10. set {%victim's uuid%::lastattacker} to attacker's uuid
  11. set {%victim's uuid%::lastattackers} to attacker
  12.  
  13.  
  14. command /topkills:
  15. trigger:
  16. set {_1st.point} to 0
  17. set {_2nd.point} to 0
  18. set {_3rd.point} to 0
  19. set {_4th.point} to 0
  20. set {_5th.point} to 0
  21. set {_6th.point} to 0
  22. set {_7th.point} to 0
  23. set {_8th.point} to 0
  24. set {_9th.point} to 0
  25. set {_10th.point} to 0
  26. loop {kills::*}:
  27. if loop-value is more than {_1st.point}:
  28. set {_15th} to {_14th}
  29. set {_15th.point} to {_14th.point}
  30. set {_14th} to {_13th}
  31. set {_14th.point} to {_13th.point}
  32. set {_13th} to {_12th}
  33. set {_13th.point} to {_12th.point}
  34. set {_12th} to {_11th}
  35. set {_12th.point} to {_11th.point}
  36. set {_11th} to {_10th}
  37. set {_11th.point} to {_10th.point}
  38. set {_10th} to {_9th}
  39. set {_10th.point} to {_9th.point}
  40. set {_9th} to {_8th}
  41. set {_9th.point} to {_8th.point}
  42. set {_8th} to {_7th}
  43. set {_8th.point} to {_7th.point}
  44. set {_7th} to {_6th}
  45. set {_7th.point} to {_6th.point}
  46. set {_6th} to {_5th}
  47. set {_6th.point} to {_5th.point}
  48. set {_5th} to {_4th}
  49. set {_5th.point} to {_4th.point}
  50. set {_4th} to {_3rd}
  51. set {_4th.point} to {_3rd.point}
  52. set {_3rd} to {_2nd}
  53. set {_3rd.point} to {_2nd.point}
  54. set {_2nd} to {_1st}
  55. set {_2nd.point} to {_1st.point}
  56. set {_1st} to loop-index
  57. set {_1st.point} to loop-value
  58. else if loop-value is more than {_2nd.point}:
  59. set {_15th} to {_14th}
  60. set {_15th.point} to {_14th.point}
  61. set {_14th} to {_13th}
  62. set {_14th.point} to {_13th.point}
  63. set {_13th} to {_12th}
  64. set {_13th.point} to {_12th.point}
  65. set {_12th} to {_11th}
  66. set {_12th.point} to {_11th.point}
  67. set {_11th} to {_10th}
  68. set {_11th.point} to {_10th.point}
  69. set {_10th} to {_9th}
  70. set {_10th.point} to {_9th.point}
  71. set {_9th} to {_8th}
  72. set {_9th.point} to {_8th.point}
  73. set {_8th} to {_7th}
  74. set {_8th.point} to {_7th.point}
  75. set {_7th} to {_6th}
  76. set {_7th.point} to {_6th.point}
  77. set {_6th} to {_5th}
  78. set {_6th.point} to {_5th.point}
  79. set {_5th} to {_4th}
  80. set {_5th.point} to {_4th.point}
  81. set {_4th} to {_3rd}
  82. set {_4th.point} to {_3rd.point}
  83. set {_3rd} to {_2nd}
  84. set {_3rd.point} to {_2nd.point}
  85. set {_2nd} to loop-index
  86. set {_2nd.point} to loop-value
  87. else if loop-value is more than {_3rd.point}:
  88. set {_15th} to {_14th}
  89. set {_15th.point} to {_14th.point}
  90. set {_14th} to {_13th}
  91. set {_14th.point} to {_13th.point}
  92. set {_13th} to {_12th}
  93. set {_13th.point} to {_12th.point}
  94. set {_12th} to {_11th}
  95. set {_12th.point} to {_11th.point}
  96. set {_11th} to {_10th}
  97. set {_11th.point} to {_10th.point}
  98. set {_10th} to {_9th}
  99. set {_10th.point} to {_9th.point}
  100. set {_9th} to {_8th}
  101. set {_9th.point} to {_8th.point}
  102. set {_8th} to {_7th}
  103. set {_8th.point} to {_7th.point}
  104. set {_7th} to {_6th}
  105. set {_7th.point} to {_6th.point}
  106. set {_6th} to {_5th}
  107. set {_6th.point} to {_5th.point}
  108. set {_5th} to {_4th}
  109. set {_5th.point} to {_4th.point}
  110. set {_4th} to {_3rd}
  111. set {_4th.point} to {_3rd.point}
  112. set {_3rd} to loop-index
  113. set {_3rd.point} to loop-value
  114. else if loop-value is more than {_4th.point}:
  115. set {_15th} to {_14th}
  116. set {_15th.point} to {_14th.point}
  117. set {_14th} to {_13th}
  118. set {_14th.point} to {_13th.point}
  119. set {_13th} to {_12th}
  120. set {_13th.point} to {_12th.point}
  121. set {_12th} to {_11th}
  122. set {_12th.point} to {_11th.point}
  123. set {_11th} to {_10th}
  124. set {_11th.point} to {_10th.point}
  125. set {_10th} to {_9th}
  126. set {_10th.point} to {_9th.point}
  127. set {_9th} to {_8th}
  128. set {_9th.point} to {_8th.point}
  129. set {_8th} to {_7th}
  130. set {_8th.point} to {_7th.point}
  131. set {_7th} to {_6th}
  132. set {_7th.point} to {_6th.point}
  133. set {_6th} to {_5th}
  134. set {_6th.point} to {_5th.point}
  135. set {_5th} to {_4th}
  136. set {_5th.point} to {_4th.point}
  137. set {_4th} to loop-index
  138. set {_4th.point} to loop-value
  139. else if loop-value is more than {_5th.point}:
  140. set {_15th} to {_14th}
  141. set {_15th.point} to {_14th.point}
  142. set {_14th} to {_13th}
  143. set {_14th.point} to {_13th.point}
  144. set {_13th} to {_12th}
  145. set {_13th.point} to {_12th.point}
  146. set {_12th} to {_11th}
  147. set {_12th.point} to {_11th.point}
  148. set {_11th} to {_10th}
  149. set {_11th.point} to {_10th.point}
  150. set {_10th} to {_9th}
  151. set {_10th.point} to {_9th.point}
  152. set {_9th} to {_8th}
  153. set {_9th.point} to {_8th.point}
  154. set {_8th} to {_7th}
  155. set {_8th.point} to {_7th.point}
  156. set {_7th} to {_6th}
  157. set {_7th.point} to {_6th.point}
  158. set {_6th} to {_5th}
  159. set {_6th.point} to {_5th.point}
  160. set {_5th} to loop-index
  161. set {_5th.point} to loop-value
  162. else if loop-value is more than {_6th.point}:
  163. set {_15th} to {_14th}
  164. set {_15th.point} to {_14th.point}
  165. set {_14th} to {_13th}
  166. set {_14th.point} to {_13th.point}
  167. set {_13th} to {_12th}
  168. set {_13th.point} to {_12th.point}
  169. set {_12th} to {_11th}
  170. set {_12th.point} to {_11th.point}
  171. set {_11th} to {_10th}
  172. set {_11th.point} to {_10th.point}
  173. set {_10th} to {_9th}
  174. set {_10th.point} to {_9th.point}
  175. set {_9th} to {_8th}
  176. set {_9th.point} to {_8th.point}
  177. set {_8th} to {_7th}
  178. set {_8th.point} to {_7th.point}
  179. set {_7th} to {_6th}
  180. set {_7th.point} to {_6th.point}
  181. set {_6th} to loop-index
  182. set {_6th.point} to loop-value
  183. else if loop-value is more than {_7th.point}:
  184. set {_15th} to {_14th}
  185. set {_15th.point} to {_14th.point}
  186. set {_14th} to {_13th}
  187. set {_14th.point} to {_13th.point}
  188. set {_13th} to {_12th}
  189. set {_13th.point} to {_12th.point}
  190. set {_12th} to {_11th}
  191. set {_12th.point} to {_11th.point}
  192. set {_11th} to {_10th}
  193. set {_11th.point} to {_10th.point}
  194. set {_10th} to {_9th}
  195. set {_10th.point} to {_9th.point}
  196. set {_9th} to {_8th}
  197. set {_9th.point} to {_8th.point}
  198. set {_8th} to {_7th}
  199. set {_8th.point} to {_7th.point}
  200. set {_7th} to loop-index
  201. set {_7th.point} to loop-value
  202. else if loop-value is more than {_8th.point}:
  203. set {_15th} to {_14th}
  204. set {_15th.point} to {_14th.point}
  205. set {_14th} to {_13th}
  206. set {_14th.point} to {_13th.point}
  207. set {_13th} to {_12th}
  208. set {_13th.point} to {_12th.point}
  209. set {_12th} to {_11th}
  210. set {_12th.point} to {_11th.point}
  211. set {_11th} to {_10th}
  212. set {_11th.point} to {_10th.point}
  213. set {_10th} to {_9th}
  214. set {_10th.point} to {_9th.point}
  215. set {_9th} to {_8th}
  216. set {_9th.point} to {_8th.point}
  217. set {_8th} to loop-index
  218. set {_8th.point} to loop-value
  219. else if loop-value is more than {_9th.point}:
  220. set {_15th} to {_14th}
  221. set {_15th.point} to {_14th.point}
  222. set {_14th} to {_13th}
  223. set {_14th.point} to {_13th.point}
  224. set {_13th} to {_12th}
  225. set {_13th.point} to {_12th.point}
  226. set {_12th} to {_11th}
  227. set {_12th.point} to {_11th.point}
  228. set {_11th} to {_10th}
  229. set {_11th.point} to {_10th.point}
  230. set {_10th} to {_9th}
  231. set {_10th.point} to {_9th.point}
  232. set {_9th} to loop-index
  233. set {_9th.point} to loop-value
  234. else if loop-value is more than {_10th.point}:
  235. set {_15th} to {_14th}
  236. set {_15th.point} to {_14th.point}
  237. set {_14th} to {_13th}
  238. set {_14th.point} to {_13th.point}
  239. set {_13th} to {_12th}
  240. set {_13th.point} to {_12th.point}
  241. set {_12th} to {_11th}
  242. set {_12th.point} to {_11th.point}
  243. set {_11th} to {_10th}
  244. set {_11th.point} to {_10th.point}
  245. set {_10th} to {_9th}
  246. set {_10th.point} to {_9th.point}
  247. else if loop-value is more than {_11th.point}:
  248. set {_15th} to {_14th}
  249. set {_15th.point} to {_14th.point}
  250. set {_14th} to {_13th}
  251. set {_14th.point} to {_13th.point}
  252. set {_13th} to {_12th}
  253. set {_13th.point} to {_12th.point}
  254. set {_12th} to {_11th}
  255. set {_12th.point} to {_11th.point}
  256. set {_11th} to {_10th}
  257. set {_11th.point} to {_10th.point}
  258. else if loop-value is more than {_12th.point}:
  259. set {_15th} to {_14th}
  260. set {_15th.point} to {_14th.point}
  261. set {_14th} to {_13th}
  262. set {_14th.point} to {_13th.point}
  263. set {_13th} to {_12th}
  264. set {_13th.point} to {_12th.point}
  265. set {_12th} to {_11th}
  266. set {_12th.point} to {_11th.point}
  267. else if loop-value is more than {_13th.point}:
  268. set {_15th} to {_14th}
  269. set {_15th.point} to {_14th.point}
  270. set {_14th} to {_13th}
  271. set {_14th.point} to {_13th.point}
  272. set {_13th} to {_12th}
  273. set {_13th.point} to {_12th.point}
  274. else if loop-value is more than {_14th.point}:
  275. set {_15th} to {_14th}
  276. set {_15th.point} to {_14th.point}
  277. set {_14th} to {_13th}
  278. set {_14th.point} to {_13th.point}
  279. else if loop-value is more than {_15th.point}:
  280. set {_15th} to {_14th}
  281. set {_15th.point} to {_14th.point}
  282. set {_1st} to offline player from "%{_1st}%"
  283. set {_2nd} to offline player from "%{_2nd}%"
  284. set {_3rd} to offline player from "%{_3rd}%"
  285. set {_4th} to offline player from "%{_4th}%"
  286. set {_5th} to offline player from "%{_5th}%"
  287. set {_6th} to offline player from "%{_6th}%"
  288. set {_7th} to offline player from "%{_7th}%"
  289. set {_8th} to offline player from "%{_8th}%"
  290. set {_9th} to offline player from "%{_9th}%"
  291. set {_10th} to offline player from "%{_10th}%"
  292. set {_11th} to offline player from "%{_11th}%"
  293. set {_12th} to offline player from "%{_12th}%"
  294. set {_13th} to offline player from "%{_13th}%"
  295. set {_14th} to offline player from "%{_14th}%"
  296. set {_15th} to offline player from "%{_15th}%"
  297. create new gui with id "kills" with virtual chest named " >=TOP KILLS=<" with 4 rows:
  298. loop integers from 15 to 35:
  299. make gui slot loop-value with gray glass pane named ""
  300. set {_p} to "%{_1st}%"
  301. set {_skull} to skull of "%{_p}%" parsed as offline player
  302. make gui slot 0 with {_skull} named "&a%{_p}%" with lore "&bKills: &3%{_1st.point}%"
  303. set {_p} to "%{_2nd}%"
  304. set {_skull} to skull of "%{_p}%" parsed as offline player
  305. make gui slot 1 with {_skull} named "&a%{_p}%" with lore "&bKills: &3%{_2nd.point}%"
  306. set {_p} to "%{_3rd}%"
  307. set {_skull} to skull of "%{_p}%" parsed as offline player
  308. make gui slot 2 with {_skull} named "&a%{_p}%" with lore "&bKills: &3%{_3rd.point}%"
  309. loop integers from 3 to 14:
  310. set {_num} to loop-value + 1
  311. set {_p} to "%{_%{_num}%th}%"
  312. set {_skull} to skull of "%{_p}%" parsed as offline player
  313. make gui slot loop-value with {_skull} named "&a%{_p}%" with lore "&bKills: &3%{_%{_num}%th.point}%"
  314. open gui with id "kills" to player
  315.  
  316.  
  317. command /leaderboard:
  318. trigger:
  319. set {_1st.point} to 0
  320. set {_2nd.point} to 0
  321. set {_3rd.point} to 0
  322. set {_4th.point} to 0
  323. set {_5th.point} to 0
  324. set {_6th.point} to 0
  325. set {_7th.point} to 0
  326. set {_8th.point} to 0
  327. set {_9th.point} to 0
  328. set {_10th.point} to 0
  329. loop {kills::*}:
  330. if loop-value is more than {_1st.point}:
  331. set {_15th} to {_14th}
  332. set {_15th.point} to {_14th.point}
  333. set {_14th} to {_13th}
  334. set {_14th.point} to {_13th.point}
  335. set {_13th} to {_12th}
  336. set {_13th.point} to {_12th.point}
  337. set {_12th} to {_11th}
  338. set {_12th.point} to {_11th.point}
  339. set {_11th} to {_10th}
  340. set {_11th.point} to {_10th.point}
  341. set {_10th} to {_9th}
  342. set {_10th.point} to {_9th.point}
  343. set {_9th} to {_8th}
  344. set {_9th.point} to {_8th.point}
  345. set {_8th} to {_7th}
  346. set {_8th.point} to {_7th.point}
  347. set {_7th} to {_6th}
  348. set {_7th.point} to {_6th.point}
  349. set {_6th} to {_5th}
  350. set {_6th.point} to {_5th.point}
  351. set {_5th} to {_4th}
  352. set {_5th.point} to {_4th.point}
  353. set {_4th} to {_3rd}
  354. set {_4th.point} to {_3rd.point}
  355. set {_3rd} to {_2nd}
  356. set {_3rd.point} to {_2nd.point}
  357. set {_2nd} to {_1st}
  358. set {_2nd.point} to {_1st.point}
  359. set {_1st} to loop-index
  360. set {_1st.point} to loop-value
  361. else if loop-value is more than {_2nd.point}:
  362. set {_15th} to {_14th}
  363. set {_15th.point} to {_14th.point}
  364. set {_14th} to {_13th}
  365. set {_14th.point} to {_13th.point}
  366. set {_13th} to {_12th}
  367. set {_13th.point} to {_12th.point}
  368. set {_12th} to {_11th}
  369. set {_12th.point} to {_11th.point}
  370. set {_11th} to {_10th}
  371. set {_11th.point} to {_10th.point}
  372. set {_10th} to {_9th}
  373. set {_10th.point} to {_9th.point}
  374. set {_9th} to {_8th}
  375. set {_9th.point} to {_8th.point}
  376. set {_8th} to {_7th}
  377. set {_8th.point} to {_7th.point}
  378. set {_7th} to {_6th}
  379. set {_7th.point} to {_6th.point}
  380. set {_6th} to {_5th}
  381. set {_6th.point} to {_5th.point}
  382. set {_5th} to {_4th}
  383. set {_5th.point} to {_4th.point}
  384. set {_4th} to {_3rd}
  385. set {_4th.point} to {_3rd.point}
  386. set {_3rd} to {_2nd}
  387. set {_3rd.point} to {_2nd.point}
  388. set {_2nd} to loop-index
  389. set {_2nd.point} to loop-value
  390. else if loop-value is more than {_3rd.point}:
  391. set {_15th} to {_14th}
  392. set {_15th.point} to {_14th.point}
  393. set {_14th} to {_13th}
  394. set {_14th.point} to {_13th.point}
  395. set {_13th} to {_12th}
  396. set {_13th.point} to {_12th.point}
  397. set {_12th} to {_11th}
  398. set {_12th.point} to {_11th.point}
  399. set {_11th} to {_10th}
  400. set {_11th.point} to {_10th.point}
  401. set {_10th} to {_9th}
  402. set {_10th.point} to {_9th.point}
  403. set {_9th} to {_8th}
  404. set {_9th.point} to {_8th.point}
  405. set {_8th} to {_7th}
  406. set {_8th.point} to {_7th.point}
  407. set {_7th} to {_6th}
  408. set {_7th.point} to {_6th.point}
  409. set {_6th} to {_5th}
  410. set {_6th.point} to {_5th.point}
  411. set {_5th} to {_4th}
  412. set {_5th.point} to {_4th.point}
  413. set {_4th} to {_3rd}
  414. set {_4th.point} to {_3rd.point}
  415. set {_3rd} to loop-index
  416. set {_3rd.point} to loop-value
  417. else if loop-value is more than {_4th.point}:
  418. set {_15th} to {_14th}
  419. set {_15th.point} to {_14th.point}
  420. set {_14th} to {_13th}
  421. set {_14th.point} to {_13th.point}
  422. set {_13th} to {_12th}
  423. set {_13th.point} to {_12th.point}
  424. set {_12th} to {_11th}
  425. set {_12th.point} to {_11th.point}
  426. set {_11th} to {_10th}
  427. set {_11th.point} to {_10th.point}
  428. set {_10th} to {_9th}
  429. set {_10th.point} to {_9th.point}
  430. set {_9th} to {_8th}
  431. set {_9th.point} to {_8th.point}
  432. set {_8th} to {_7th}
  433. set {_8th.point} to {_7th.point}
  434. set {_7th} to {_6th}
  435. set {_7th.point} to {_6th.point}
  436. set {_6th} to {_5th}
  437. set {_6th.point} to {_5th.point}
  438. set {_5th} to {_4th}
  439. set {_5th.point} to {_4th.point}
  440. set {_4th} to loop-index
  441. set {_4th.point} to loop-value
  442. else if loop-value is more than {_5th.point}:
  443. set {_15th} to {_14th}
  444. set {_15th.point} to {_14th.point}
  445. set {_14th} to {_13th}
  446. set {_14th.point} to {_13th.point}
  447. set {_13th} to {_12th}
  448. set {_13th.point} to {_12th.point}
  449. set {_12th} to {_11th}
  450. set {_12th.point} to {_11th.point}
  451. set {_11th} to {_10th}
  452. set {_11th.point} to {_10th.point}
  453. set {_10th} to {_9th}
  454. set {_10th.point} to {_9th.point}
  455. set {_9th} to {_8th}
  456. set {_9th.point} to {_8th.point}
  457. set {_8th} to {_7th}
  458. set {_8th.point} to {_7th.point}
  459. set {_7th} to {_6th}
  460. set {_7th.point} to {_6th.point}
  461. set {_6th} to {_5th}
  462. set {_6th.point} to {_5th.point}
  463. set {_5th} to loop-index
  464. set {_5th.point} to loop-value
  465. else if loop-value is more than {_6th.point}:
  466. set {_15th} to {_14th}
  467. set {_15th.point} to {_14th.point}
  468. set {_14th} to {_13th}
  469. set {_14th.point} to {_13th.point}
  470. set {_13th} to {_12th}
  471. set {_13th.point} to {_12th.point}
  472. set {_12th} to {_11th}
  473. set {_12th.point} to {_11th.point}
  474. set {_11th} to {_10th}
  475. set {_11th.point} to {_10th.point}
  476. set {_10th} to {_9th}
  477. set {_10th.point} to {_9th.point}
  478. set {_9th} to {_8th}
  479. set {_9th.point} to {_8th.point}
  480. set {_8th} to {_7th}
  481. set {_8th.point} to {_7th.point}
  482. set {_7th} to {_6th}
  483. set {_7th.point} to {_6th.point}
  484. set {_6th} to loop-index
  485. set {_6th.point} to loop-value
  486. else if loop-value is more than {_7th.point}:
  487. set {_15th} to {_14th}
  488. set {_15th.point} to {_14th.point}
  489. set {_14th} to {_13th}
  490. set {_14th.point} to {_13th.point}
  491. set {_13th} to {_12th}
  492. set {_13th.point} to {_12th.point}
  493. set {_12th} to {_11th}
  494. set {_12th.point} to {_11th.point}
  495. set {_11th} to {_10th}
  496. set {_11th.point} to {_10th.point}
  497. set {_10th} to {_9th}
  498. set {_10th.point} to {_9th.point}
  499. set {_9th} to {_8th}
  500. set {_9th.point} to {_8th.point}
  501. set {_8th} to {_7th}
  502. set {_8th.point} to {_7th.point}
  503. set {_7th} to loop-index
  504. set {_7th.point} to loop-value
  505. else if loop-value is more than {_8th.point}:
  506. set {_15th} to {_14th}
  507. set {_15th.point} to {_14th.point}
  508. set {_14th} to {_13th}
  509. set {_14th.point} to {_13th.point}
  510. set {_13th} to {_12th}
  511. set {_13th.point} to {_12th.point}
  512. set {_12th} to {_11th}
  513. set {_12th.point} to {_11th.point}
  514. set {_11th} to {_10th}
  515. set {_11th.point} to {_10th.point}
  516. set {_10th} to {_9th}
  517. set {_10th.point} to {_9th.point}
  518. set {_9th} to {_8th}
  519. set {_9th.point} to {_8th.point}
  520. set {_8th} to loop-index
  521. set {_8th.point} to loop-value
  522. else if loop-value is more than {_9th.point}:
  523. set {_15th} to {_14th}
  524. set {_15th.point} to {_14th.point}
  525. set {_14th} to {_13th}
  526. set {_14th.point} to {_13th.point}
  527. set {_13th} to {_12th}
  528. set {_13th.point} to {_12th.point}
  529. set {_12th} to {_11th}
  530. set {_12th.point} to {_11th.point}
  531. set {_11th} to {_10th}
  532. set {_11th.point} to {_10th.point}
  533. set {_10th} to {_9th}
  534. set {_10th.point} to {_9th.point}
  535. set {_9th} to loop-index
  536. set {_9th.point} to loop-value
  537. else if loop-value is more than {_10th.point}:
  538. set {_15th} to {_14th}
  539. set {_15th.point} to {_14th.point}
  540. set {_14th} to {_13th}
  541. set {_14th.point} to {_13th.point}
  542. set {_13th} to {_12th}
  543. set {_13th.point} to {_12th.point}
  544. set {_12th} to {_11th}
  545. set {_12th.point} to {_11th.point}
  546. set {_11th} to {_10th}
  547. set {_11th.point} to {_10th.point}
  548. set {_10th} to {_9th}
  549. set {_10th.point} to {_9th.point}
Add Comment
Please, Sign In to add comment