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.