make my plugin check for an update

Discussion in 'Plugin Development' started by jamiemac262, Oct 6, 2012.

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

    jamiemac262

    hi, i would like to make my plugin check for updates and inform server staff when an update is available. the only problem is i haven't a clue where to begin.... could anybody point me in the right direction? or.... paste the code i need (the latter would be better :D )

    thanx to all who decide to help :)
     
  2. Offline

    calebbfmv

    Simply hook into the RSS feed of the website where your plugin is uploaded, check to see if the versions in the plugin.yml's match on both the website file and the current file, if not, send a message!
     
  3. Offline

    jamiemac262

    ummmm..... ok, let's pretend the only word i understood was RSS.......

    lol

    seriously tho, i didnt no this site had an RSS feed -_- could you walk me through it please?
     
  4. Offline

    calebbfmv

  5. Offline

    TnT

    This a result of the moderation queue all new users (or inactive users) have to go through when they first post to the Bukkit forums (or become active again). If you see a lot of posts edited by any staff member without explanation, its most likely due to the moderation queue.
     
  6. Offline

    Woobie

    Probably wont work
    Code:JAVA
    1.  
    2. this.getServer().getScheduler().scheduleAsyncRepeatingTask(this, new Runnable(){
    3.  
    4. public void run(){
    5. try{
    6. VersionNew = getNewVersion(VersionCurrent);
    7. String VersionOld = getDescription().getVersion();
    8. if(!VersionNew.contains(VersionOld)){
    9. logger.info(VersionNew+ "is available!");
    10. }
    11. } catch (Exception e){
    12. }
    13. }
    14. }, 0, 432000);
     
  7. Offline

    calebbfmv

    Code:JAVA
    1.  
    2. [/SYNTAX=JAVA]
    3. No, just plain no.
    4.  
    5. [quote="TnT, post: 1363916, member: 595"]This a result of the moderation queue all new users (or inactive users) have to go through when they first post to the Bukkit forums (or become active again). If you see a lot of posts edited by any staff member without explanation, its most likely due to the moderation queue.[/quote]
    6. Fair dues.
    7.  
    8. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
    Woobie likes this.
  8. Offline

    Woobie

    Hah, why not? :D
     
Thread Status:
Not open for further replies.

Share This Page