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:
booky10 2021-11-05 21:01:36 +01:00
parent 34ba1d34bd
commit fbce8f41cc

View File

@ -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
}