Repository navigation
feat: owners can reset the stats of a player or server to 0 (plugin 3.25) - #11
Merged
Merged
Conversation
….25) Emptying a stats file had no effect: the database only stores values it receives and the game writes online players back from memory. The plugin now clears the game first, the database follows on its answer (ADR 0005).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Owners can set the stats of one player or the whole server back to 0 in the Gefahrenzone of
/manage/<id>. Emptying a stats file never worked: the database only stores values it receives, and the game writes online players back from memory.!STATSRESET. Only then the database is cleared, so older stats cannot return.Checked:
mvn package,ruff. New tests intests/test_stats_reset.pycover the owner check, confirmation, plugin order, and limits between players and servers; they need Postgres, so they run in CI.