Advertisement
FrostedWeFall

Top Kills

Oct 25th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # TopKills LeaderBoard
  2. # Mr_Theia
  3. #
  4.  
  5. on load:
  6. send "&8======================================================================" to console
  7. send "&dTopKills LeaderBoard v.1 loaded successful" to console
  8. send "&8======================================================================" to console
  9.  
  10. on sign change:
  11. player is op
  12. if line 1 of block is "[TopKills]":
  13. add block to {TopKills.signs::*}
  14. set {_skull} to skull of {topkiller}
  15. set the block above the block to {_skull}'s skull
  16. set line 1 of block to "&4Top Kills"
  17. set line 2 of block to "&a%{topkiller}%"
  18. set line 3 of block to "&cKills: &f%{topkills}%"
  19.  
  20. every 30 seconds:
  21. loop {TopKills.signs::*}:
  22. set line 2 of loop-value to "&a%{topkiller}%"
  23. set line 3 of loop-value to "&cKills: &f%{topkills}%"
  24. set block above loop-value to {topkiller}'s skull
  25.  
  26. on death of player:
  27. attacker is a player
  28. if {topkill.%attacker%} isn't set:
  29. add 1 to {topkill::%attacker%}
  30. else:
  31. add 1 to {topkill::%attacker%}
  32. {topkiller} isn't set:
  33. set {topkiller} to attacker
  34. set {topkills} to {topkill::%attacker%}
  35. {topkill::%attacker%} is greater than {topkills}:
  36. set {topkiller} to attacker
  37. set {topkills} to {topkill::%attacker%}
  38. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement