I need help in my plugin Hardcore games! [SCOREBOARD]

Discussion in 'Plugin Development' started by MrVicioGamer, Oct 27, 2014.

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

    MrVicioGamer

    My scoreboard is working perfectly however has a simple bug in the picture you can see that time is running however it was another number in red do not know why since I already added the counter after the text can someone help me remove that 10 in red and stay only Starting: Time? Thank you! :)
    [​IMG]

    CODE:

    @SuppressWarnings("deprecation")
    public static void setScoreBoard(final Player p) {
    Scoreboard board = getScoreBoard();
    Objective objective = board.registerNewObjective("Starting", "dummy");
    objective.setDisplayName("§6§lServerTitle");
    objective.setDisplaySlot(DisplaySlot.SIDEBAR);
    String s10 = "§fStarting" + TIME2(COUNTDOWN);
    Score a10 = objective.getScore(Bukkit.getOfflinePlayer(s10));
    a10.setScore(10);
    p.setScoreboard(board);
    }
     
  2. Offline

    MasterDoctor

    1) You should post this in plugin development.
    2) You set the scoreboard to "§fStarting" + TIME2(COUNTDOWN);
    Set it to just "§fStarting"
    Then do a10.setScore(TIME2(COUNTDOWN))

    This is off the top of my head so please don't hate if it doesnt work.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  3. Offline

    MrVicioGamer

    and how would the code?
     
  4. Offline

    tcvs

    MrVicioGamer The red number is the "score" there is no way to remove it. You can either use that as your time or you use it to order your items as the biggest score will always be on top.
     
Thread Status:
Not open for further replies.

Share This Page