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:
Ursprung
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
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren