13
0
geforkt von Mirrors/Paper

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.
Dieser Commit ist enthalten in:
booky10 2021-11-05 21:01:36 +01:00
Ursprung 34ba1d34bd
Commit fbce8f41cc

Datei anzeigen

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