Leaderboard: type: world events: on player killed by player: #Check if flag exists, if not, make the base list - flag kill_player_count:++ - flag death_player_count:++ #Check top 5 values to see if player exceeded them - define x 1 - define KD ]||0> - while { - define TopPlayer ]||"NA"> - - define TopKD <.flag[kill_player_count].div[<.flag[death_player_count]>]||0>> + - define TopKD <.flag[kill_player_count].div[<.flag[death_player_count]>]||0> - if ]> { - define y 5 #For every value under the player, copy the flag to the next position - - while ] { + - while ]> { #Copy the flag - flag server Leaderboard_:]> } #Break the loop - define x 6 #Add the new player to the list - flag server Leaderboard_: - - define x - } + - define x + } - determine fulfilled on leaderboard command: - narrate "1. 2. 3. 4. 5. " on stats command: - narrate "]||0>"