Updating plugins without restarting.

Discussion in 'Bukkit Help' started by mohammed moftah, Jan 24, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    mohammed moftah

    I was just wondering is there a way to allow plugins to be replaced without stopping the server and replacing the plugin? I am on a PC and every time i try it says the file is in use so i can not do anything to it. Is there a way to do this? Basically if i have a plugin called PIE which is version 1.2.3 and i just got PIE 1.3 and i want to update it I have to stop the server update it then start it again. Is there a way so i dont have to restart the server or force the file to delete the one in use? I am on windows 7.
     
  2. Offline

    stuntguy3000

  3. Offline

    midnightfang22

    /reload which can cause memory leaks. So, just restart.
     
  4. Offline

    mohammed moftah

    I mean to delete a running plugin and put in its updated version
     
  5. Offline

    Minerman01

    No, you can't do this. :)
     
  6. Offline

    bobee98

    impossible but good idea maybe It will be implemented one day.
     
  7. Offline

    Minerman01

    Yes, maybe. But now it can't be done :(
     
  8. Offline

    pzxc

    Actually it's very easy to do this. (As a plugin developer this is how I test changes to my plugin, by updating it live every time I change a bit of code, sometimes every few seconds lol)

    Use the plugin "PlugMan" from here: http://dev.bukkit.org/server-mods/plugman/

    When you want to update a plugin, do this command on the console or from ingame: /plugman unload PluginName

    it will properly disable the plugin then unload it from memory, at which point you can copy/replace the file in your plugins folder.

    Then /plugman load PluginName
    and you're back in business!
     
  9. Offline

    Minerman01

    Hehe lol :)

    Nice!
    I'm going to give this a try! :)
     
Thread Status:
Not open for further replies.

Share This Page