Add ability to store persistent values in a JSON file #322
Labels
best practices
Improve the health of the codebase
hacktoberfest
This issue qualifies for the hacktoberfest event
help wanted
Extra attention is needed
java
Pull requests that update Java code
up for grabs
Any issue that is up for grabs
Milestone
Task Context
As part of #311, new functionality was added to log the total amount of hydration breaks for a user across multiple sessions. The value is currently stored in
totalHydrationBreaks.log
as a numeric value. The goal for this task is to store the value in a json file instead to allow for new potential fields to be added in the future.Acceptance Criteria / Goals
The acceptance criteria for this task is to replace the
totalHydrationBreaks.log
usage with a new json fileHydrationReminderStats.json
.The json object stored should look something like the following:
This will allow for more fields and persistent data to be added in the future as needed.
Additional Notes
There should be other RuneLite plugins that follow this design as well. They may be a good resource to look into to see how they handle this issue. For example: https://github.com/zenpj/eclectic-jars/blob/master/src/main/java/com/eclectic/EclecticPlugin.java
Please refer to CONTRIBUTING.md for info on how to setup, build, run, and test this project. Feel free to ping @jmakhack in the comments below with any questions if needed. Also, join the Discord to meet and engage with other contributors!
The text was updated successfully, but these errors were encountered: