Solved Scoreboard Question

Discussion in 'Plugin Development' started by glasseater, Jan 25, 2016.

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

    glasseater

    Hey guys,

    Today I have a question about scoreboards. I made my scoreboard no problem. However, it's not the way I would like it to look.

    I basically want the score to be under the Objective. This is what I have now:

    *Removed link*

    but I would want it to look something like this:

    *Removed link*

    Here is the code I use now.

    Code:
     Score deaths = o.getScore(color("&bDeaths");
                 deaths.setScore(Data.getValue(p.getName(), "deathsone"));
    Solved :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jan 25, 2016
  2. Offline

    Zombie_Striker

    @glasseater
    1. Create some way to organize each line (E.g. Kills = 7, Kills_Score = 6, Deaths = 5; Deaths_Score = 4, ect.)
    2. When you want to update a score, loop through the scoreboard and look for the score as listed above.
    3. If the score from the scoreboard is equal to the values from above.
    4. Remove that value from the scoreboard, create a new value with the displayname being the score you want to display and the scoreboard value being the line it will be displayed on.
     
Thread Status:
Not open for further replies.

Share This Page