MineTinker
MineTinker copied to clipboard
Add MineTinkerReloadEvent
The way the plugin handles reloads is definitely not suitable for the size of it. Some config options do not get reloaded at all, some sometimes and others get reloaded in a really inelegant method call hierarchy.
There should be a Reload-Event called if the Plugin is reloaded so that every class can listen for a reload and deal with it accordingly.
- [ ] Implement MTReloadEvent (maybe look into similar Bukkit Events if available)
- [ ] Rewrite classes like ModManager, Modifiers, LanguageManager, ConfigurationManager, Updater, ChatWriter, ...
- [ ] Use different EventPriorities to have a better reload structure
- [ ] Make the CommandManager reloadable
Plugin Start-up Behaviour:
- Load Main-Config File
- Init and load Configuration Manager
- Init and load Language Manager
- Init Mod Manager
- Register other Listeners
- Load Core Modifiers
- Initiate Plugin Reload Event