saveResource() to a specific folder?

Discussion in 'Plugin Development' started by JRL1004, Mar 31, 2014.

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

    JRL1004

    So, I'm making an animation thing and to test I have it default to load in 4 .png/.jpg files and render them. [Viewable here]
    What I want to do is specify a specific file for each animation set, but I can't get saveResource() to put the images in a set file. Any help is appreciated.
     
  2. Offline

    tommycake50

    Why would you need a Bukkit method?
    Just do getClass().getResourceAsStream("path to file from root of jar"); and then write that into some other file somewhere or whatever.
     
  3. Offline

    JRL1004

    tommycake50 I'm not experienced with jar streams so I was hoping that Bukkit would have something built in, but I suppose I could run a few google searches later and use a stream.
     
Thread Status:
Not open for further replies.

Share This Page