on death: if attacker is a player: add 1 to {Kills::%attacker%} add 1 to {deaths::%victim%} Command /topkills: aliases: /kills trigger: loop {Kills::*}: add 1 to {_size2} if {_low.to.high.list::%loop-value%} is not set: set {_low.to.high.list::%loop-value%} to loop-index else: set {_n} to 0 loop {_size2} times: set {_n} to {_n}+1 {_low.to.high.list::%loop-value-1%.%{_n}%} is not set set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index stop loop wait 1 tick set {_n} to size of {_low.to.high.list::*} loop {_low.to.high.list::*}: set {_high.to.low.list::%{_n}%} to loop-value set {_n} to {_n}-1 send "&4&m----&c&m----&4&m----&8( &c&lTOPKILLS &8)&4&m----&c&m----&4&m----" send " " loop {_high.to.low.list::*}: add 1 to {_result} send " &8&l[&4&l%{_result}%&c&l&8&l] &f&l%loop-value% &c&l- &8&l(&4&l%{Kills::%loop-value%}% &4&lKills&8&l)" to player if {_result} is 10: stop on right click on sign: if line 2 is "&4&l&nSe listen": if line 4 is "(Højre-klik)": execute player command "/Top" command /top: trigger: wait 3 ticks open chest with 3 rows named "&c&lTopKills" to player wait 3 ticks format slot 0 of player with black stained glass pane named "" with lore "" to be unstealable format slot 1 of player with black stained glass pane named "" with lore "" to be unstealable format slot 2 of player with black stained glass pane named "" with lore "" to be unstealable format slot 3 of player with black stained glass pane named "" with lore "" to be unstealable format slot 4 of player with black stained glass pane named "" with lore "" to be unstealable format slot 5 of player with black stained glass pane named "" with lore "" to be unstealable format slot 6 of player with black stained glass pane named "" with lore "" to be unstealable format slot 7 of player with black stained glass pane named "" with lore "" to be unstealable format slot 8 of player with black stained glass pane named "" with lore "" to be unstealable format slot 9 of player with black stained glass pane named "" with lore "" to be unstealable format slot 17 of player with black stained glass pane named "" with lore "" to be unstealable format slot 18 of player with black stained glass pane named "" with lore "" to be unstealable format slot 19 of player with black stained glass pane named "" with lore "" to be unstealable format slot 20 of player with black stained glass pane named "" with lore "" to be unstealable format slot 21 of player with black stained glass pane named "" with lore "" to be unstealable format slot 22 of player with black stained glass pane named "" with lore "" to be unstealable format slot 23 of player with black stained glass pane named "" with lore "" to be unstealable format slot 24 of player with black stained glass pane named "" with lore "" to be unstealable format slot 25 of player with black stained glass pane named "" with lore "" to be unstealable format slot 26 of player with black stained glass pane named "" with lore "" to be unstealable format slot 13 of player with shiny diamond sword named "&4&lTOPKILLS" with lore "&7||&7Klik her for at se." to close then run [make player execute command "topkills"]