Add API for resetting a single score
It was only possible to reset all scores for a specific entry, instead of resetting only specific scores.
This commit is contained in:
@ -73,4 +73,14 @@ public interface Score {
|
||||
*/
|
||||
@Nullable
|
||||
Scoreboard getScoreboard();
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* Resets this score, if a value has been set.
|
||||
*
|
||||
* @throws IllegalStateException if the associated objective has been
|
||||
* unregistered
|
||||
*/
|
||||
void resetScore() throws IllegalStateException;
|
||||
// Paper end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user