Advertisement
LukaMC59

Untitled

Nov 14th, 2017
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. command /top:
  2. aliases: /ktop, /topkills, /killstop, /killboard, /killt, /killtop
  3. trigger:
  4. loop {kills::*}:
  5. add 1 to {_size}
  6. if {_low.to.high.list::%loop-value%} is not set:
  7. set {_low.to.high.list::%loop-value%} to loop-index
  8. else:
  9. set {_n} to 0
  10. loop {_size} times:
  11. set {_n} to {_n}+1
  12. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  13. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  14. stop loop
  15. wait 1 tick
  16. set {_n} to size of {_low.to.high.list::*}
  17. loop {_low.to.high.list::*}:
  18. set {_high.to.low.list::%{_n}%} to loop-value
  19. set {_n} to {_n}-1
  20. wait 1 tick
  21. send "&7&m--------------------"
  22. send " &8[&9Leaderboard&8] "
  23. send " "
  24. loop {_high.to.low.list::*}:
  25. add 1 to {_result}
  26. send "&9%loop-value%&8 | &7%{kills::%loop-value%}%" to player
  27. if {_result} is 10:
  28. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement