Getting information from websites

Discussion in 'Plugin Development' started by Brent Fagersten, Mar 11, 2013.

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

    Brent Fagersten

    Hi, im wondering how i could connect my bukkit plugin to my website.
    i have a few things in mind, 1 check for updates, 2 get a motd, and 3 maybe even a auto update (however i think this is frowned upon now so maybe not).
    Could anyone point me in the right direction as to how to do that? Just the checking for update would be great!
     
  2. What I would do is a httpconnection to read a version.txt file.
    Get the version from the site www.example.com/mc-plugins/version.txt

    If that version is higher then the one you're using download the new plugin.
    You could do the same for motd.
     
  3. Offline

    Brent Fagersten

    do you have an example of what the code would be like for that? sorry never done something like that before
     
  4. Let me google that for you :)
     
    ZeusAllMighty11 likes this.
  5. Offline

    GodzOfMadness

    TechGuard god i hate it when people do that lol
     
    Rasmase likes this.
  6. Offline

    Brent Fagersten

    ^^

    but thanks anyway, it got me closer to my answer.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  7. I just want to show people it's not that hard to find things out yourself.
    You'll learn much more from that then asking on a forum. I don't like spoon-feeding.
     
  8. Offline

    GodzOfMadness

    TechGuard no i don't mind that you show them that but i hate how you people link it saying "was that so hard?" then sends you to the google search why not just link the google search lol
     
  9. Offline

    Brent Fagersten

    yeah its a little rude but it is funny and clever
     
Thread Status:
Not open for further replies.

Share This Page