Server jarfile download permalinks

Aug 5, 2013 at 6:31 AM
Edited Aug 5, 2013 at 6: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:
Also, why not implement a permalink download function for CraftBukkit? Their download link 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
            Dim url As String = ""
            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)
                    End Using
                End Using
            End Using
        Catch ex As Exception
            Return "Could not retrieve latest version number. Try visiting manually."
        End Try
Aug 5, 2013 at 7: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?
Aug 5, 2013 at 12:30 PM
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
Aug 6, 2013 at 8: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 :)

Sep 9, 2013 at 9: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:
Sep 9, 2013 at 6: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.