I am trying to split up functionality of a plugin I wrote for Bukkit and I'm not quite sure what the best way to do it would be.
Would it make sense to split it into
- AdCommons (with the main information, like a list of worlds, players, loaded subplugins, etc),
- AdTime (which handles time speed and some other stuff) and
- AdWeather (which handles the weather on the worlds)?
If so, how would I make all subplugins be able to "add" information to the main plugin (for example the duration of a day in that world)?
Is this even the right approach and if so, how do I make it work? I'm sorry if that has been asked, didn't quite know what to look for. Thanks a lot in advance!