Skip to content

Conversation

@bentahsin
Copy link
Owner

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds backup and configuration versioning capabilities to the configuration library, including three new annotations (@Backup, @ConfigVersion, @OnReload), a BackupHandler utility class, and integrates these features into the core configuration loading logic. Additionally, the PR translates error messages from Turkish to English throughout the codebase.

  • Introduces backup functionality with automatic backup on config failures and version migrations
  • Adds configuration versioning support to track and upgrade config file versions
  • Provides reload hook mechanism via @OnReload annotation for post-reload operations

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
BackupHandler.java New utility class for creating timestamped config backups
ConfigVersion.java New annotation to mark config classes with version numbers
OnReload.java New annotation to mark methods that should run on config reload
Backup.java New annotation to configure backup behavior (enabled, path, triggers)
ConfigMapper.java Adds version handling and reload hook execution; translates error messages to English
Configuration.java Integrates backup and versioning logic into config initialization flow; translates comments and error messages
ItemStackConverter.java Translates error message from Turkish to English

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

bentahsin and others added 5 commits November 22, 2025 23:54
…java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…sion.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bentahsin bentahsin merged commit 184f130 into master Nov 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants