Admin Update Notifications: Admins (with the darikchatmanager.admin permission) now receive an in-game notification if a new update is available, ensuring they stay informed immediately upon joining.
Customizable Messages: Update notifications are fully customizable via the messages.yml file, with support for six languages.
Improved User Experience: Update information is now displayed both in the console and in-game, making it easier to keep track of available updates.
Improved Reload Process: The reloadPlugin() method has been refactored to ensure that all configuration files are reloaded and that any dependent components are updated accordingly.
Re-instantiation of LearningSystem:
The LearningSystem is now re-instantiated during a reload. This ensures that critical configuration changes—such as an updated Gemini API key—are properly applied.
Prior to re-instantiation, the current learned data is saved to avoid data loss.
MessageManager & GUI Updates:
The MessageManager now properly reloads its messages from the updated configuration.
The PatternGUI component is refreshed to reflect any changes in the configuration.
Enhanced Error Handling:
Additional try-catch blocks and logging have been implemented to provide better feedback in case of errors during the reload process.
Fixed Missing Message Issue:
Resolved Warning:
The warning [DarikChatManager] Message not found: gui.sections.learning.click-managehas been addressed.
Message Inclusion:
The missing message key gui.sections.learning.click-manage has been added to the default messages.yml file.
General Improvements:
Various minor bug fixes and optimizations have been applied for enhanced stability and performance.
Updated default configuration files to include all necessary keys and values.
Fixed an issue that could prevent newly added messages in messages.yml from being saved properly, particularly for Italian (IT), Portuguese (PT), and French (FR) translations.