Mineserver > Plugins

The new Plugin API

(1/6) > >>

Fador:
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 ;D).

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...

Fador:
Theres now windows builds available with command-plugin included, check http://mineserver.be/downloads/.

The command-plugin supports only /i, /home, /settime and /cuboid for now!

Fador:
The command plugin supports few more commands like /help (which will give the list of all available commands ;D)

I made some minor changes to the callbacks too..

Afforess:
The best API would be some kind of integration with the new Bukkit server API. Then you'd instantly get access to 100's of plugins.

Fador:
We will have some wrapper plugin to enable the use of Bukkit at some point.. Problem is that Bukkit is Java and Mineserver is C++ ;)

Navigation

[0] Message Index

[#] Next page

Go to full version