Removing Entry from a Scoreboard

Discussion in 'Bukkit Help' started by SirFaizdat, Jun 25, 2014.

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

    SirFaizdat

    I am having a lot of trouble removing an entry from a scoreboard. I am using Chinwe's Scroller class, and every time I call the .next() method it just appends a new line onto the scoreboard. Calling the scoreboard.resetScores() method does not work. Here is my code:

    Code:java
    1. public void update() {
    2. new BukkitRunnable() {
    3. @Override
    4. public void run() {
    5. if (ready) {
    6. for (Entry<StringIntGroup, Scroller> entry : scrollers
    7. .entrySet()) {
    8. scoreboard.resetScores(entry.getKey().getString());
    9. obj.getScore(entry.getValue().next()).setScore(
    10. entry.getKey().getInteger());
    11. entry.getValue();
    12. }
    13. }
    14. }
    15. }.runTaskTimer(Core.i(), 0L, 5L);
    16. }


    Is there another way to remove an entry?
     
Thread Status:
Not open for further replies.

Share This Page