diff --git a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScore.java b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScore.java index d3ae91bc03..f378113cec 100644 --- a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScore.java +++ b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScore.java @@ -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(); }