mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
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:
parent
34ba1d34bd
commit
fbce8f41cc
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user