[ABANDONED] Leaderboard

Discussion in 'Plugin Development' started by macboinc, Jul 27, 2015.

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

    macboinc

    Hello,
    I currently am looking for a way to make a leaderboard. It will arrange all the "kills" in order and will show the players name. The configuration file looks like this:
    Code:
    UUID:
          Kills:
          Deaths:
    AnotherUUID:
          Kills:
          Deaths:
    
    Please help!
     
  2. Offline

    ark9026

  3. Offline

    macboinc

    Last edited by a moderator: Jun 11, 2016
  4. Offline

    ark9026

    Sorry! I misunderstood the question. What you'll need is code that adds a player to the config when they first join the server, and for every kill they get, increase their kills by 1. For every death they get, increase their deaths by 1. Get the names of the people with the top kills and order them when they execute the command.
     
  5. Offline

    macboinc

    "Get the names of the people with the top kills and order them when they execute the command." That's what I want to know how to do. I have a collection sorted with the top number of kills, JUST THE INTEGER, I want to know how I can find the username that corresponds to the integers.
     
  6. Offline

    macboinc

    bump

    Question abandoned.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 11, 2016
Thread Status:
Not open for further replies.

Share This Page