From 4b9a4e2c98fc834340dd49c29b25a503a131c7ca Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 10 Nov 2017 10:50:52 +1100 Subject: Add Score.isScoreSet()Z API. --- src/main/java/org/bukkit/scoreboard/Score.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main/java/org') 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 @@ -51,6 +51,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. * -- cgit v1.2.3