Leaderboard / Rank ?

Discussion in 'Plugin Development' started by dlndcrdso, Jan 11, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    dlndcrdso

    I've made and am working on a stats plugin for fun based off of an old server I used to play on and one feature it had was a leaderboard stat showing where you were on the server in terms of kills and would say your place on the top kills "list". My question is how would I, out of 1000 people, show where you are on the leaderboard based on kills?
     
  2. @dlndcrdso
    Order the list with any kind of algorithm, quick sort, merge sort, insertion sort, bubble sort. Doesn't matter.

    Once you've ordered the list you can retrieve the rank they are by what index they are in the list.
     
Thread Status:
Not open for further replies.

Share This Page