Skip to content
home/templates/top players leaderboard (/top)
utilityBeginnermc 1.20.x – 1.21.x16 lines

top players leaderboard (/top)

tracks player kills. /top shows the top 10 in chat. auto-updates as players kill mobs.

vanilla Skriptno addons required.
leaderboard.sk16 lines
on death of monster:
    if attacker is a player:
        add 1 to {kills.%uuid of attacker%}

command /top:
    trigger:
        send "&6&l====== TOP 10 KILLERS ======" to player
        set {_sorted} to indexes of sorted {kills.*}
        set {_i} to 0
        loop {_sorted::*}:
            add 1 to {_i}
            if {_i} > 10:
                stop loop
            set {_name} to name of (loop-value parsed as offline player)
            send "&e%{_i}%. &f%{_name}% &7— &c%{kills.%loop-value%}%&7 kills" to player

get it running

leaderboard.sk · 16 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    leaderboard.sk· ready to drop in
  2. 2

    drop it in your scripts folder

    save it exactly here on your server — no typos, just copy the path:

    …/plugins/Skript/scripts/leaderboard.sk
  3. 3

    reload in-game

    run this in chat or console — your script goes live instantly:

    /sk reload leaderboard
that's it — your script is live. hop in-game to try it.
/ related templates

more utility templates

comments