BukkitDev Downloader Script [Linux .sh]

Discussion in 'Bukkit Tools' started by techboy99, Apr 27, 2012.

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

    techboy99

    EVER HAD THAT MOMENT WHEN YOU WANT TO DOWNLOAD A PLUGIN STRAIGHT FROM YOUR SERVER BUT DIDN'T WANT TO DO ALL THE TYPING? Well, no, probably not...
    So I run a Linux server and I don't like to always download plugins and type in the whole jar URL or use FTP. I would use FTP except I don't always have a network connection to the server, for example my computer not being on. So I wrote this script in about 3o seconds, and basically what it does is this:
    runs wget to download the jarfile
    Pros:
    you don't have to type the whole URL into wget, ex "wget http://dev.bukkit.org/.../.../......./...../..." etc
    Cons:
    Only works with BukkitDev
    Usage:
    sh DownloadPlugin.sh 567 364 Random_Plugin_V2.jar
    That would link to this:
    http://dev.bukkit.org/media/files/567/364/Random_Plugin_V2.jar
    So as long as you have the first 2 numbers and the jar number you can download it easily from your server. Note that this does not run from the Bukkit console... If you thought it did than you should probably stay away from it anyway.
    REMEMBER: Put this in your plugins directory and run it from there too or else it won't work.
    Please look at the screenshot, it will explain it.

    DOWNLOAD SCRIPT FILE:
    https://www.dropbox.com/s/cuxbgsycka947ek/DownloadPlugin.sh

    kthxbai
     

    Attached Files:

Thread Status:
Not open for further replies.

Share This Page