3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 13:00:06 +01:00

Add Score.isScoreSet()Z API.

Dieser Commit ist enthalten in:
md_5 2017-11-10 10:50:58 +11:00
Ursprung 353964045a
Commit 25959fab20

Datei anzeigen

@ -56,6 +56,13 @@ final class CraftScore implements Score {
objective.checkState().board.getPlayerScoreForObjective(entry, objective.getHandle()).setScore(score); objective.checkState().board.getPlayerScoreForObjective(entry, objective.getHandle()).setScore(score);
} }
@Override
public boolean isScoreSet() throws IllegalStateException {
Scoreboard board = objective.checkState().board;
return board.getPlayers().contains(entry) && board.getPlayerObjectives(entry).containsKey(objective.getHandle());
}
public CraftScoreboard getScoreboard() { public CraftScoreboard getScoreboard() {
return objective.getScoreboard(); return objective.getScoreboard();
} }