From 3fb273aaae92db4ca3f5f95f7a0b4295cc5bcdbb Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Mon, 10 Feb 2020 00:04:04 +0100 Subject: [PATCH] server/minecraft: Fixed downloading Minecraft Server version --- roles/server/minecraft/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/server/minecraft/defaults/main.yml b/roles/server/minecraft/defaults/main.yml index fed075a..c6465bf 100644 --- a/roles/server/minecraft/defaults/main.yml +++ b/roles/server/minecraft/defaults/main.yml @@ -13,7 +13,7 @@ launch_script: "{{ user_directory }}/launch" apparmor_profile: "{{ global_apparmor_profiles_directory }}/{{ launch_script | regex_replace('/', '.') }}" # minecraft_version: "1.10" -minecraft_source_link_generator: "curl --silent https://mcversions.net | grep minecraft_server-{{ minecraft_version }}.jar | grep --only-matching --perl-regexp '(?<=\")https://launcher.mojang.com/[^\"]+(?=\")'" +minecraft_source_link_generator: "curl --silent https://mcversions.net/download/{{ minecraft_version }} | grep --only-matching --perl-regexp '(?<=\")https://launcher.mojang.com/[^\"]+/server\\.jar(?=\")'" minecraft_source_link: "{{ lookup('pipe', minecraft_source_link_generator) }}" # direct link to server jar minecraft_port: "25565" minecraft_query_port: "{{ minecraft_port }}"