Compare commits

...

9 commits
v2.1.0 ... main

7 changed files with 35 additions and 14 deletions

13
.github/FUNDING.yml vendored Normal file
View file

@ -0,0 +1,13 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: jiriks74 # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

View file

@ -36,6 +36,7 @@ function check_updates {
download_build=$latest_build
update_version=true
update_build=true
return
else
echo Checking for updates...
fi

View file

@ -172,11 +172,11 @@ function download_jre {
rm java.tar.gz
elif [[ $required_java == "16" ]]; then
echo "Downloading Java 16"
curl -L -o java.tar.gz "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.18%2B10/OpenJDK11U-jre_$(echo $arch)_linux_hotspot_16.0.2_7.tar.gz"
curl -L -o java.tar.gz "https://github.com/adoptium/temurin16-binaries/releases/download/jdk-16.0.2%2B7/OpenJDK16U-jdk_$(echo $arch)_linux_hotspot_16.0.2_7.tar.gz"
echo "Extracting Java 16"
tar -xzf java.tar.gz
echo "Moving Java 16 to $(echo $HOME)/.adoptium_java/jre16"
mv jdk-16.0.2+7-jre "$(echo $HOME)/.adoptium_java/jre16"
mv jdk-16.0.2+7 "$(echo $HOME)/.adoptium_java/jre16"
echo "Removing temporary files"
rm java.tar.gz
elif [[ $required_java == "17" ]]; then

View file

@ -37,6 +37,9 @@ function check_updates {
download_build=$latest_build
update_version=true
update_build=true
return
else
echo Checking for updates...
fi
# Check if $build is empty

View file

@ -1,3 +1,3 @@
#!/bin/bash
EXTRA_SCRIPTS_VERSION="v2.1.1"
EXTRA_SCRIPTS_VERSION="v2.1.6"

View file

@ -8,7 +8,7 @@ branch.
The project grew out of the scope I envisioned at first, surprisingly quickly LOL,
so I moved all my development here.
This project aims to support more minecraft servers rather than just paper.
This project aims to support more Minecraft servers than just paper.
## Features
@ -16,7 +16,7 @@ This project aims to support more minecraft servers rather than just paper.
- Checks for the correct Java version installed
- Enables you to download a download a portable Java version from [Adoptium](https://adoptium.net/)
- The script download's it to `~/.adoptium_java` allowing you to use one
- The script downloads it to `~/.adoptium_java` allowing you to use one
Java downlaod across multiple server instances
- It also allows you to use multiple Java versions allowing you to run
multiple Minecraft servers requiring different Java versions
@ -39,7 +39,7 @@ This project aims to support more minecraft servers rather than just paper.
#### Self-update
- This script can self-update itself without the need for user doing it manually
- This script can self-update itself without the need for user intervention
## Currently supported servers
@ -66,7 +66,7 @@ you're running something like Ubuntu.*
> undefined behavior and may cause the script to crash or perform unexpected actions.
>
> I strongly advise against making any modifications to the server's `.jar` file
> manually, as it may interfere with the proper functioning of this script.
> manually, as it may interfere with the functionality of this script.
## Basic setup

View file

@ -8,7 +8,7 @@ set -e
# and acknowledge the original script and author. #
#############################################################################################################
CURRENT_SCRIPT_VERSION="v2.1.1"
CURRENT_SCRIPT_VERSION="v2.1.6"
# --------------------------------------------------
# You shouldn't need to change anything in this file
@ -107,7 +107,7 @@ function ask_version_differs {
echo
echo
echo "The current server version differs from the one you selected."
echo "The server version is $current_version and the selected version is $select_version."
echo "The server version is $current_version and the selected version is $version."
echo "Do you want to update the server version?"
echo "This can cause many issues if you don't know what you are doing."
echo
@ -473,14 +473,16 @@ function main {
# Get the current server file, version and build
load_script
# Check if the server type differs from the one in the config
if [[ $existing_server_type != $server_type ]]; then
ask_server_differs
fi
# Gets the installed server info
get_existing_server
# Check if the server type differs from the one in the config
if [[ $server_file != false ]]; then
if [[ $existing_server_type != $server_type ]]; then
ask_server_differs
fi
fi
# Check if the version and build are valid
check_version_valid
@ -496,6 +498,8 @@ function main {
# Check if this is the first run
first_run
# Set the java arguments
set_java_args
# Launch the server
launch_server
}