Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on statistics increase:
- if event-statistic is player kills:
- remove {kills.%player%} from {TopKills::*}
- increase {kills.%player%} by 1
- loop {TopKills::*}:
- if {kills.%player%} is less than loop-index:
- insert {kills.%player%} after {TopKills::%loop-index%}
- stop
- loop all players:
- if {kills.%player%} = first element of {TopKills::*}
- set {pos.%loop-player%} to 1
- else:
- loop {TopKills::*}:
- if {kills.%loop-player%} = loop-index:
- set {pos.%loop-player%} to loop-value
- set {PlayerIndic.%loop-value%} to name of loop-player
- set {killsIndic.%loop-value%} to {kills.%loop-player%}
- command /top:
- aliases: /topkills
- trigger:
- message "&9 Top killers"
- message "&8&m--------------------"
- message "&9[1] &7%{PlayerIndic.1}%"
- message "&9[2] &7%{PlayerIndic.2}%"
- message "&9[3] &7%{PlayerIndic.3}%"
- message "&9[4] &7%{PlayerIndic.4}%"
- message "&9[5] &7%{PlayerIndic.5}%"
- message "&9[6] &7%{PlayerIndic.6}%"
- message "&9[7] &7%{PlayerIndic.7}%"
- message "&9[8] &7%{PlayerIndic.8}%"
- message "&9[9] &7%{PlayerIndic.9}%"
- message "&9[10] &7%{PlayerIndic.10}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement