Solved 1 line keeps disappearing from the scoreboard.

Discussion in 'Plugin Development' started by IconByte, Jun 1, 2015.

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

    IconByte

    Hello, I am having problem that only 1 blank line on the scoreboard keeps disappearing for no reason. I have no idea what causes it, but when I type something to there, then the line appears... Any reasons, why?

    Code:
                        arena.getScoreboard().getObjective("Obj").getScore("§fTime: §a" + timeString(arena.getTime())).setScore(3);
                        arena.getScoreboard().getObjective("Obj").getScore("").setScore(3); // << this line is disappearing
                        arena.getScoreboard().getObjective("Obj").getScore("").setScore(2);
                        arena.getScoreboard().getObjective("Obj").getScore("§fPlayers: §a" + arena.getPlayers().size()).setScore(1);
    //EDIT: It doesn't wanna allow me to enter 2 blank lines. Blank line with score 3 is still disappeared even when I add new score with text between them.

    Solved!
    Thread, what fixed my problem:
    https://bukkit.org/threads/scoreboard-issues.319636/

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

Share This Page