summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/bukkit/scoreboard/Score.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/scoreboard/Score.java b/src/main/java/org/bukkit/scoreboard/Score.java
index 4c103468..f7b86b40 100644
--- a/src/main/java/org/bukkit/scoreboard/Score.java
+++ b/src/main/java/org/bukkit/scoreboard/Score.java
@@ -52,6 +52,15 @@ public interface Score {
void setScore(int score) throws IllegalStateException;
/**
+ * Shows if this score has been set at any point in time.
+ *
+ * @return if this score has been set before
+ * @throws IllegalStateException if the associated objective has been
+ * unregistered
+ */
+ boolean isScoreSet() throws IllegalStateException;
+
+ /**
* Gets the scoreboard for the associated objective.
*
* @return the owning objective's scoreboard, or null if it has been