From 20d3818903aebc6fcd92d150ec2ed60c642b2169 Mon Sep 17 00:00:00 2001 From: TheJeterLP Date: Fri, 30 Dec 2022 08:54:01 +0100 Subject: [PATCH] add missing bash script --- ensure-java-16 | 20 ++++++++++++++++++++ pom.xml | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 ensure-java-16 diff --git a/ensure-java-16 b/ensure-java-16 new file mode 100644 index 0000000..b7d264f --- /dev/null +++ b/ensure-java-16 @@ -0,0 +1,20 @@ +#!/bin/bash + +JV=`java -version 2>&1 >/dev/null | head -1` +echo $JV | sed -E 's/^.*version "([^".]*)\.[^"]*".*$/\1/' + +if [ "$JV" != 16 ]; then + case "$1" in + install) + echo "Installing SDKMAN..." + curl -s "https://get.sdkman.io" | bash + source ~/.sdkman/bin/sdkman-init.sh + sdk version + sdk install java 16.0.2-open + ;; + use) + echo "must source ~/.sdkman/bin/sdkman-init.sh" + exit 1 + ;; + esac +fi \ No newline at end of file diff --git a/pom.xml b/pom.xml index d661801..d2355e5 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ ChatEx 2022 - 2.9.5 + 2.9.6 ChatManagement plugin for Bukkit https://www.spigotmc.org/resources/chatex-continued.71041/