How do I make an automatic update downloader?

Discussion in 'Plugin Development' started by bloodless2010, Aug 16, 2013.

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

    bloodless2010

    So I'm writing a custom Plugin, and I want it to check a file on my DropBox for the version (i.e 1.0.4) and then download the jar from there if the version is different.. It wont be released to bukkitdev so it wont break their rules, please I really need help with this and I'm sure loads other do too, I can't find anything like what I'm looking for because they all need to comply with bukkitdev's ToS. but anyway, this is private plugin xD Thanks.
     
  2. Offline

    Miner_Fil

  3. Offline

    bloodless2010

    Miner_Fil But that is JUST the URL for it.. I have no idea how to download files in java.. Or even get contents from a remote txt file
     
  4. Offline

    Miner_Fil

  5. Offline

    ZeusAllMighty11 Retired Staff

    Remember to include a toggle to shut it off, or it won't be accepted on Bukkit :)
     
  6. Offline

    Miner_Fil

  7. Offline

    bloodless2010

    Miner_Fil Thank you! How would I call this on onEnable()?
     
  8. Offline

    ZeusAllMighty11 Retired Staff

    Create a new instanceof Updater and call the checkForUpdates method
     
  9. Offline

    Miner_Fil

    Code:java
    1. public void onEnable()
    2. {
    3. Updater updater = new Updater(this);
    4. updater.checkForUpdates();
    5. }
     
    bloodless2010 likes this.
  10. Offline

    bloodless2010

    Miner_Fil
    Thank you so much, I appreciate this :)
     
Thread Status:
Not open for further replies.

Share This Page