Skip to content

Implement preference saving for users#2

Merged
walker84837 merged 3 commits intomainfrom
feat/implement-preference-saving
Jun 30, 2025
Merged

Implement preference saving for users#2
walker84837 merged 3 commits intomainfrom
feat/implement-preference-saving

Conversation

@walker84837
Copy link
Copy Markdown
Contributor

@walker84837 walker84837 commented Jun 23, 2025

  • PostgreSQL
  • MySQL
  • Local file (GZipped JSON file?) Persistent Data Container
  • Redis(?)

Fixes #1

@walker84837 walker84837 added bug Something isn't working enhancement New feature or request labels Jun 23, 2025
InfoHub now supports storing player hint preferences in either a
database (MySQL/PostgreSQL), PDC, or both with automatic
synchronization. This provides more flexibility for server admins and
better performance with async operations.

Summary of changes:

- Add AsyncCraftr for abbreviating async task scheduling
- Add CombinedChoiceStorage to sync between PDC and database
- Add DatabaseChoiceStorage with HikariCP connection pooling
- Add PdcChoiceStorage for persistent player data storage
- Add storage configuration to config.yml
- Implement ChoiceManager to handle storage operations
- Improve player UUID handling for ignored players
- Refactor InfoHubPlugin to support new storage system
- Update ServerStats to use onLoad time for uptime
- Update build.gradle.kts with new dependencies
@walker84837 walker84837 merged commit 97d9a33 into main Jun 30, 2025
1 check passed
@walker84837 walker84837 deleted the feat/implement-preference-saving branch June 30, 2025 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Save user choices in a local file (GZipped JSON or SQLite database?)

1 participant