So, is it possible to reload code of plugin without stop\start server? Example: I have code: PHP: function onEnable(){ $this->getLogger()->info("test1"); } after enabling output will be: Code: [Server thread/INFO]: [TESTPLUG] test1 then i change Code: $this->getLogger()->info("test1"); to Code: $this->getLogger()->info("test 234"); and save it and then i will make reload of server, and the output still will be: Code: [Server thread/INFO]: [TESTPLUG] test1 but after stop then start output will be new: Code: [Server thread/INFO]: [TESTPLUG] test 234
You can't. Period. There are some very hacky PHP extensions to allow unloading previously loaded code and loading it again, but this will cause a lot of side effects. What's wrong with restarting the server?
I don't need it anyway, just asking if it's possible and I don't have to restart the server every time I make my edits in the plugin
It's more reliable to test things by restarting the whole server. There may be something left over from the previous version if you don't restart the servre.