Skip to content

Commit

Permalink
Add Score.isScoreSet()Z API.
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 authored and SpigotMC committed Sep 4, 2014
1 parent 30d654f commit 3890685
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/org/bukkit/scoreboard/Score.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 3890685

Please sign in to comment.