From 9260e9e87b59a6d2c63b8dd80855d8f949a3ab6c Mon Sep 17 00:00:00 2001
From: James Chambers <05jchambers@gmail.com>
Date: Mon, 16 May 2022 13:02:04 -0600
Subject: [PATCH] Fix issue #39 - add -DPaper.IgnoreJavaVersion=true to startup
line to allow 1.13-1.16 versions to run
---
README.md | 5 +++++
start.sh | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 6f61691..9912613 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,11 @@ There are 2 choices for the alternative java (providing /usr/bin/java).
Update History
+May 16th 2022
+
+ - Add -DPaper.IgnoreJavaVersion=true to allow OpenJDK 17 to run the older Paper Minecraft versions (thanks NotMick, issue #39
+
+
May 15th 2022
- Added screen -wipe to beginning of start.sh to prevent a startup issue that could occur if there was a "dead" screen instance (thanks grimholme)
diff --git a/start.sh b/start.sh
index 0fae635..e37e6e8 100644
--- a/start.sh
+++ b/start.sh
@@ -202,4 +202,4 @@ fi
echo "Starting Minecraft server. To view window type screen -r minecraft."
echo "To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D"
-screen -dmS minecraft dirname/minecraft/jre/bin/java -jar -Xms400M -XmxmemselectM dirname/minecraft/paperclip.jar
+screen -dmS minecraft dirname/minecraft/jre/bin/java -DPaper.IgnoreJavaVersion=true -jar -Xms400M -XmxmemselectM dirname/minecraft/paperclip.jar