Server jarfile download permalinks

Aug 5, 2013 at 5:31 AM
Edited Aug 5, 2013 at 5:35 AM
Just FYI, Vanilla 1.6.2 server was released, so you should update the server Downloads.txt
It's unfortunate that Mojang did not make their links to their server *.jar releases as a permalink:
https://s3.amazonaws.com/Minecraft.Download/versions/1.6.2/minecraft_server.1.6.2.jar
Also, why not implement a permalink download function for CraftBukkit? Their download link http://cbukk.it/craftbukkit.jar will always return their latest version.

The following was the VB.NET code I used to get the latest version number to display to users, as from my own Minecraft server management project...
Function GetLatestVersionID_Online() As String
        Try
            Dim url As String = "http://cbukk.it/craftbukkit.jar"
            Dim fileName As String
            Using client As New MyWebClient()
                If Not My.Computer.Network.IsAvailable Then
                    Return "Offline =("
                    Exit Function
                End If
                Using rawStream As Stream = client.OpenRead(url)

                    ' Get the filename, which will include version info
                    fileName = client.ResponseUri.AbsolutePath.Substring(client.ResponseUri.AbsolutePath.LastIndexOf("/") + 1)
                    Using reader As New StreamReader(rawStream)
                        ' Manipulate the filename to get the version number of the current release
                        Dim firstpos As String = fileName.Substring("craftbukkit-".Length)
                        Dim endpos As Integer = fileName.IndexOf("-", firstpos.Length)
                        Return "Latest recommended release: " & fileName.Substring(firstpos.Length, fileName.Length - endpos - 1)
                        reader.Close()
                    End Using
                    rawStream.Close()
                End Using
            End Using
        Catch ex As Exception
            Return "Could not retrieve latest version number. Try visiting http://dl.bukkit.org/ manually."
        End Try
Cheers!
Coordinator
Aug 5, 2013 at 6:48 AM
Hi there,

Thanks for the info and code. We are aware there are various limitations with the current form and also have the issue that it breaches Mojang conditions so we are working to fix this. Future versions will probably work in a sinilar way to what you describe. Current plans are to:
  • Redevelop the Downloads form so that:
    ** It auto detects new versions of MC /Modpacks from Minecraft/Bukkit/Tekkit etc.
    ** Allows you to download latest version
    ** Allows you to request to attempt to find old versions
    ** Has an area for you to add to the list of sources (including how to detect new versions)
Does that sound like a good system to you?
Ed
Aug 5, 2013 at 11:30 AM
Sounds good, though I haven't seen any easy way to automate downloading the latest Tekkit server files (yet).
But why wouldn't anyone want to visit the awesome Tekkit website anyways :)

btw when you have the time and feel your software is ready for public release, one can always benefit from free advertising
http://www.minecraftwiki.net/wiki/Programs_and_editors/Server_wrappers
Coordinator
Aug 6, 2013 at 7:29 PM
Haha well we might be able to figure something out :)

And ha you do realise this project is completely public? And released for that matter...and 4th (ish) on Google when you search "Minecraft Server Manager" - it's not exactly a hidden project, it's just not well known in the MC community - but I seriously doubt how many people use that MC page given it's not particularly up-to-date and misses some of the big (most popular) server managers. Anyway feel free to add us to the list if you like :)

Ed
Sep 9, 2013 at 8:16 AM
Not to dig up a dead thread, but for completeness, someone has figured out how to get the URL for the latest Vanilla server:
http://gaming.stackexchange.com/questions/123194/is-there-a-way-to-get-the-latest-server-jar-through-a-url-that-doesnt-change/123443#123443
Coordinator
Sep 9, 2013 at 5:03 PM
Thanks - the status of downloading/updating servers is still undecided but I will let you know what will be happening in the next versions as soon as we have decided.

Ed