From 69bb2be1fbe53448fc7fba6e96d2dfe45b741b19 Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Tue, 23 Jan 2024 17:16:38 -0500 Subject: [PATCH] Minecraft Java Server: add additional logging --- apps/Minecraft Java Server/install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/Minecraft Java Server/install b/apps/Minecraft Java Server/install index 99c71b65df..04beaf6f2d 100755 --- a/apps/Minecraft Java Server/install +++ b/apps/Minecraft Java Server/install @@ -39,6 +39,7 @@ case "$server_category" in table=($available_versions) userinput_func "$description" "${table[@]}" server_version="$output" + status "Selected $server_category version $server_version" loader_version=$(curl -s https://meta.fabricmc.net/v2/versions/loader/$server_version | jq -r 'first( .[] | .loader | .version )') installer_verison=$(curl -s https://meta.fabricmc.net/v2/versions/installer | jq -r 'first( .[] | .version )') server_jar="fabric-server-mc.$server_version-loader.$loader_version-launcher.$installer_verison.jar" @@ -51,6 +52,7 @@ case "$server_category" in table=($available_versions) userinput_func "$description" "${table[@]}" server_version="$output" + status "Selected $server_category version $server_version" installer_version=$(curl -s https://files.minecraftforge.net/net/minecraftforge/forge/maven-metadata.json | jq -r '.'\"$server_version\"' | [last] | .[]') # example file formats @@ -67,6 +69,7 @@ case "$server_category" in table=($available_versions) userinput_func "$description" "${table[@]}" server_version="$output" + status "Selected $server_category version $server_version" server_jar="${server_category,,}-$server_version.jar" wget -O "$server_jar" "https://serverjars.com/api/fetchJar/Servers/$server_category/$server_version" || exit 1 ;; @@ -76,6 +79,7 @@ case "$server_category" in table=($available_versions) userinput_func "$description" "${table[@]}" server_version="$output" + status "Selected $server_category version $server_version" server_jar="${server_category,,}-$server_version.jar" wget -O "$server_jar" "https://serverjars.com/api/fetchJar/Vanilla/$server_category/$server_version" || exit 1 ;;