How I can reload plugin, when server running? (I would like edit and reload plugin, when server running) (Not disable and enable!!!) I try: PHP: $oldPlugin = $server->getPluginManager()->getPlugin($pluginName);$server->getPluginManager()->disablePlugin($oldPlugin);$pluginPath = $oldPlugin->getDataFolder();$newPlugin = $server->getPluginManager()->loadPlugins($pluginPath);
Simply run onEnable function to reload stuff? I'm not exactly sure what you're trying to do but modifying a working phar is a bad idea.
Short story: this is impossible. Long story: This would require a RUNKIT implementation. TL;DR: ain't nobody got time for dat. Reference: http://php.net/manual/en/intro.runkit.php