I was wondering what functions/hooks do you people really need?
So I made a new C-pointer struct based API just to see if that would really work and it did!
I have some documentation at
http://mineserver.be/wiki/Plugin_API but the wiki page needs some changes because it's a bit messy with all the functions (if anyone has an idea on this, please do something
).
To create a plugin, you basically just need to include
plugin_api.h and define init and shutdown functions (as seen on the wiki page).
I have a test plugin at
plugintest/src/command.cpp just for an example. It might not be the most readable code because I just put that together for testing =/
I also made the plugin system the way, that _all_ the old plugins should work even when the Mineserver changes. (Wrapper functions and some amount of void pointers, which can be "converted" to function pointers when needed. Old plugins just think they are still void pointers)
It'll take few more days to get all the needed functions added there...