I have a big issue with removing a score from the scoreboard using Bukkit API. Here is my code:
ScoreBoard board;
Objective obj = board.registerNewObjective("foo", "dummy");
obj.getScore("bar").setScore(5);
// ...
Now, I need to remove that "bar"
score from the scoreboard (objective). How do I do that? I did research, and couldn't find a method in the Bukkit API that would remove an existing score entry from the objective.