onebone submitted a new plugin: PluginLoader - Load the new plugin when you're running server Read more about this plugin...
Nice idea, but you don't need all that code. You can just load a plugin with this: PHP: $this->api->plugin->load($fileName);
Hmm.. You're right, I thought it would do this automatically if you use the function load, but it doesn't, and since all plugins use non-static functions and variables this won't be possible with $object->init()
Please add /unload and /reload (make /unload and /load). Then this plugin will be epic. Either on the minecraft forums be plugin who make it. Very old. Ps sorry for my English
This plugin is really cool and useful! As other people have said, though, you should add the commands /unload <pluginname> and /reload <pluginname>. This would make this plugin much more useful!
Couldn't you use PluginAPI::load()? (and include the file before) That way you don't have to use private methods. Also, @wxl, PHP doesn't support unloading classes, so you can't update plugins on runtime and reload them. That requires a restart
Do I have another way to start init()? I tried to access PluginAPI::$plugins but it was private.. And also tried PluginAPI::get() + I don't want to use PluginAPI::initAll() because it calls init() in all plugin
¬¬ That can cause lots of issues, too xD I didn't remember about runkit, but I may look at it to do some funny things
no it doesnt work 2014-05-17 13:41:50 [INFO] Loading plugin "PluginLoader" 1.0 by onebone 2014-05-17 13:41:50 [WARNING] Plugin "PluginLoader" may not be compatible with the API (10,11 != 12)! It can crash or corrupt the server!
An update will be good, the new API now supoort reloads (there's a command already implemented to do that) the only remaining thing, will be to work with it