01-04-2017, 04:35 AM
Some form of "hooks" would be beneficial and in fact even necessary. If the server is to be restarted using webadmin, libcuberite needs to notify the wrapper app about that; console output will be provided as a callback. So whatever API we implement for use between libcuberite and the wrapper app is up to us.
Note that this would benefit from de-singleton-izing the entire server (so that multiple cRoot instances are allowed) - the wrapper can then create a cRoot instance, initialize it with whatever settings and callbacks it wants and then run it. Not sure how to handle logging, though.
Note that this would benefit from de-singleton-izing the entire server (so that multiple cRoot instances are allowed) - the wrapper can then create a cRoot instance, initialize it with whatever settings and callbacks it wants and then run it. Not sure how to handle logging, though.