utilityAdvancedmc 1.20.x – 1.21.x45 lines
top players leaderboard (hologram)
spawns a floating hologram listing the top 10 players by kills. auto-refreshes every minute as the leaderboard changes.
required addons — install before reloading
- download skBee ↗Adds scoreboards, hologram text, and other things Skript can't do on its own.
Drop each
.jar into your plugins/ folder, then restart your server.leaderboard-hologram.sk45 lines
command /setleaderboard: permission: leaderboard.admin trigger: set {leaderboard.location} to location of player send "&aLeaderboard location set. Refreshing now." to player execute console command "/refreshleaderboard" command /refreshleaderboard: permission: leaderboard.admin trigger: if {leaderboard.location} is not set: send "&cSet location first with /setleaderboard." to player stop # Remove old hologram entities (skBee text displays we previously spawned) loop {leaderboard.entities::*}: delete loop-value delete {leaderboard.entities::*} # Spawn header line at the base location spawn a text display at {leaderboard.location}: set text of entity to "&6&lTOP KILLS" set billboard of entity to center add entity to {leaderboard.entities::*} # Walk down the sorted leaderboard. Use 'plus vector(...)' to offset # locations (the bare ~ operator isn't valid Skript). UUIDs convert # to player names via "parsed as offline player". set {_sorted} to indexes of sorted {kills::*} set {_i} to 0 loop {_sorted::*}: add 1 to {_i} exit loop if {_i} > 10 set {_offset} to vector(0, -0.3 * {_i}, 0) set {_pos} to {leaderboard.location} plus {_offset} set {_player_name} to name of (loop-value parsed as offline player) spawn a text display at {_pos}: set text of entity to "&e%{_i}%. &f%{_player_name}% &7— &c%{kills::%loop-value%}%" set billboard of entity to center add entity to {leaderboard.entities::*} on death of player: if attacker is a player: add 1 to {kills::%uuid of attacker%} every 1 minute: execute console command "/refreshleaderboard"
get it running
leaderboard-hologram.sk · 45 lines · needs skBee- 1
copy or download
grab the .sk file with the buttons up top.
leaderboard-hologram.sk· ready to drop in - 2
drop it in your scripts folder
save it exactly here on your server — no typos, just copy the path:
…/plugins/Skript/scripts/leaderboard-hologram.sk - 3
reload in-game
run this in chat or console — your script goes live instantly:
/sk reload leaderboard-hologram
that's it — your script is live. hop in-game to try it.
/ related templates
more utility templates
utility
afk detector
marks a player as afk after 5 minutes of no movement. announces when they go afk and return.
utilitytop players leaderboard (/top)
tracks player kills. /top shows the top 10 in chat. auto-updates as players kill mobs.
utilitytrash can gui (/trash)
opens a single-row chest the player can dump unwanted items into. contents discarded on close.