129130131132133134135136
* @param value of score * @return this objective */ public Objective setScore(String key, int value) { score.put(key, value); scoreboard.callProtocolEvent(new ScoreUpdateEvent(key, value, name, false)); return this; }
152153154155156157158159
* @param key to remove entry * @return this objective */ public Objective removeScore(String key) { score.remove(key); scoreboard.callProtocolEvent(new ScoreUpdateEvent(key, 0, name, true)); return this; }