Solved Getting a image

Discussion in 'Plugin Development' started by acer5999, Nov 23, 2014.

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

    acer5999

    Hey, I'm making a simple plugin that involves changing the favicon and to do this I need to figure out how to get a image. The image will be placed in the plugin data folder with my config. How would I get said image in my code? I've looked at source code from other plugins but I couldn't figure it out
     
  2. Offline

    Skionz

    TGRHavoc likes this.
  3. Offline

    TGRHavoc

    acer5999
    To expand on what Skionz said, you would get the folder that contains your config "getDataFolder()" (I think) and then you can add the path relative to that.
     
  4. Offline

    acer5999

    TGRHavoc and Skionz like this.
Thread Status:
Not open for further replies.

Share This Page