Solved Copy files from the plugin jar

Discussion in 'Plugin Development' started by Badwolf330, Feb 13, 2016.

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

    Badwolf330

    hey, i want to copy a bukkit.jar server that i did put in my plugin.jar to a foldor does anyone got any idea how i can do this?
     
  2. Offline

    DoggyCode™

    I don't understand what you even mean.
     
  3. Offline

    teej107

    @Badwolf330 why did you embed the server in your plugin jar? You do know that makes it illegal to distribute?
     
  4. Offline

    mcdorli

    The two things you need:
    File.copy()
    YourMain.class.getResourcesAsStream(...)

    I don't know though, why you need it. I think, if your plugin runs, then the folder you're in pretty much has one.
     
  5. Offline

    Zombie_Striker

    @Badwolf330
    There should be absolutely no reason why you would need to embed your "own" bukkit.jar file inside a plugin. If this is an attempt to copy and replace the jar that the server is running (because that is the only reason I can think of for doing this), you cannot copy a file that is in use (e.g. running the server). I hope this is only for you, because it is illegal to distribute this to anyone.
     
  6. Offline

    Badwolf330

Thread Status:
Not open for further replies.

Share This Page