def get_download_url_path_for_minecraft_lib(descriptor):
    """
    Gets the URL path for a library based on it's name
    :param descriptor: string, e.g. "com.typesafe.akka:akka-actor_2.11:2.3.3"
    :return: string
    """
    ext = "jar"

    pts = descriptor.split(":")
    domain = pts[0]
    name = pts[1]

    last = len(pts) - 1
    if "@" in pts[last]:
        idx = pts[last].index("@")
        ext = pts[last][idx+1:]
        pts[last] = pts[last][0:idx+1]

    version = pts[2]

    classifier = None
    if len(pts) > 3:
        classifier = pts[3]

    file = name + "-" + version

    if classifier is not None:
        file += "-" + classifier

    file += "." + ext

    path = domain.replace(".", "/") + "/" + name + "/" + version + "/" + file

    return path