diff options
Diffstat (limited to 'src/main/java/org/bukkit/craftbukkit/scoreboard/CraftObjective.java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/scoreboard/CraftObjective.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftObjective.java b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftObjective.java index 431807a8..9eaec710 100644 --- a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftObjective.java +++ b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftObjective.java @@ -93,6 +93,13 @@ final class CraftObjective extends CraftScoreboardComponent implements Objective return new CraftScore(this, player.getName()); } + public Score getScore(String entry) throws IllegalArgumentException, IllegalStateException { + Validate.notNull(entry, "Entry cannot be null"); + CraftScoreboard scoreboard = checkState(); + + return new CraftScore(this, entry); + } + @Override public void unregister() throws IllegalStateException { CraftScoreboard scoreboard = checkState(); |