2015-05-29 11:35:21 +02:00
|
|
|
From 13cf271e46dd3ab8974491f621a5be427e40e5ce Mon Sep 17 00:00:00 2001
|
2014-07-21 22:46:54 +02:00
|
|
|
From: md_5 <git@md-5.net>
|
|
|
|
Date: Thu, 17 Apr 2014 19:35:13 +1000
|
|
|
|
Subject: [PATCH] Add Score.isScoreSet()Z API.
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/scoreboard/Score.java b/src/main/java/org/bukkit/scoreboard/Score.java
|
|
|
|
index 4c10346..2410cbd 100644
|
|
|
|
--- a/src/main/java/org/bukkit/scoreboard/Score.java
|
|
|
|
+++ b/src/main/java/org/bukkit/scoreboard/Score.java
|
|
|
|
@@ -51,6 +51,17 @@ public interface Score {
|
|
|
|
*/
|
|
|
|
void setScore(int score) throws IllegalStateException;
|
|
|
|
|
|
|
|
+ // Spigot start
|
|
|
|
+ /**
|
|
|
|
+ * 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;
|
|
|
|
+ // Spigot end
|
|
|
|
+
|
|
|
|
/**
|
|
|
|
* Gets the scoreboard for the associated objective.
|
|
|
|
*
|
|
|
|
--
|
2015-05-25 14:05:40 +02:00
|
|
|
2.1.4
|
2014-07-21 22:46:54 +02:00
|
|
|
|