forked from aysihuniks/NHook
-
Notifications
You must be signed in to change notification settings - Fork 0
Releases: ozaiithejava/NHook
Releases · ozaiithejava/NHook
v1
NHook v1.2.0 - Configuration Refactor
🚀 New Features
- Singleton Pattern Implementation: Config class now uses singleton pattern for better memory management
- Enhanced Configuration Management: New
initialize()andgetInstance()methods for cleaner code - Improved Error Handling: Better exception handling for uninitialized config access
🔧 Improvements
- Better memory efficiency with singleton pattern
- Cleaner API design for configuration access
- Enhanced JavaDoc documentation
- Improved code maintainability
⚠️ Breaking Changes
- Config constructor is now private
- Migration Required: Replace
new Config(plugin)withConfig.initialize(plugin) - Use
Config.getInstance()for subsequent access
📦 Installation
- Download
NHook-v1.2.0.jarfrom the assets below - Place it in your server's
pluginsfolder - Restart your server
🔄 Migration Guide
Before:
Config config = new Config(plugin);