From 4bf15cc9741fca39f7f2a94cba8827f85105eaba Mon Sep 17 00:00:00 2001 From: MichaIng Date: Tue, 7 Jan 2025 07:59:59 +0700 Subject: [PATCH] v9.10 - DietPi-Software | PaperMC: Fix Geyser pluging version for older PaperMC versions --- dietpi/dietpi-software | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index e73b726022..ddec8470ea 100755 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -946,7 +946,7 @@ Available commands: aSOFTWARE_CATX[$software_id]=5 aSOFTWARE_DOCS[$software_id]='https://dietpi.com/docs/software/gaming/#papermc' aSOFTWARE_DEPS[$software_id]='196' - [[ -f '/mnt/dietpi_userdata/papermc/eula.txt' ]] || aSOFTWARE_INTERACTIVE[$software_id]=1 + [[ -f '/mnt/dietpi_userdata/papermc/eula.txt' ]] || { ls -al /mnt/dietpi_userdata/papermc; aSOFTWARE_INTERACTIVE[$software_id]=1; } #------------------ software_id=62 aSOFTWARE_NAME[$software_id]='Box86' @@ -11524,7 +11524,9 @@ _EOF_ [[ -f '/mnt/dietpi_userdata/papermc/plugins/Geyser-Spigot.jar' ]] && G_WHIP_DEFAULT_ITEM='Yes' if G_WHIP_YESNO 'Would you like to install the Geyser and Floodgate plugins for compatibility with Bedrock Edition?\n\nNote that this may be buggy.' then - Download_Install 'https://download.geysermc.org/v2/projects/geyser/versions/latest/builds/latest/downloads/spigot' /mnt/dietpi_userdata/papermc/plugins/Geyser-Spigot.jar + local version='2.2.3' + (( $G_DISTRO > 7 )) && version='latest' + Download_Install "https://download.geysermc.org/v2/projects/geyser/versions/2.2.3/builds/latest/downloads/spigot" /mnt/dietpi_userdata/papermc/plugins/Geyser-Spigot.jar Download_Install 'https://download.geysermc.org/v2/projects/floodgate/versions/latest/builds/latest/downloads/spigot' /mnt/dietpi_userdata/papermc/plugins/floodgate-spigot.jar fi