13
0
geforkt von Mirrors/Paper

Add Score.isScoreSet()Z API.

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2017-11-10 10:50:58 +11:00
Ursprung b6ce01dac8
Commit 648dd6e32f

Datei anzeigen

@ -56,6 +56,13 @@ final class CraftScore implements 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() {
return objective.getScoreboard();
}