mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 09:42:05 +01:00
7b0c576798
Allows us much greater control over the Spigot portion of the code and makes us more "proper" Credit to @Dmck2b for originally passing the idea along a while back
31 lines
967 B
Diff
31 lines
967 B
Diff
From 0e1c7f672c58398ec207ae3926e2c7066acad037 Mon Sep 17 00:00:00 2001
|
|
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.
|
|
*
|
|
--
|
|
1.9.1
|
|
|