Sooo, my code is the following: Code: PluginManager pm = getServer().getPluginManager(); Plugin thePlugin = (arg1); // now disable a plugin. pm.disablePlugin(thePlugin); This code should disable the plugin, right? The console tells me that the plugin is disabled. And no commands of the specified plugin are working... But: I still cant delete that plugin out of the plugin folder, because its still ''Opened by JAVA''. Is there a way?
It still registers the events,even if you disable it! What you need it to "unload" it,not sure if there's such a method in bukkit!
^ This, basically. Why you need to unload a plugin is beyond me, you shouldn't be interfering with other plugins.
@ZNickq Hmmm, "Well that sucks." No i dont think either, i want to make a plugin which can disable plugins on my server. This will make it very easy to update them. Just disable it, you can delete it and paste the new version in. Than you dont need to restart the whole server... Someone got any idea about the method?
My plugin updates work like this: Delete file > Download new one > /reload (Running on Linux, so that works. Windows, not so much) Have you looked at any of the plugin managers around? No idea what kind of features they have beyond enabling/disabling.