From 63e45760a39afde060ab404baec5550fcb1363bb Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 21 Sep 2022 06:56:58 +1000 Subject: [PATCH] Add support for Java 19 By: md_5 --- paper-server/src/main/java/org/bukkit/craftbukkit/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java b/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java index b899da7869..934df0d20e 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java @@ -155,8 +155,8 @@ public class Main { System.err.println("Unsupported Java detected (" + javaVersion + "). This version of Minecraft requires at least Java 17. Check your Java version with the command 'java -version'."); return; } - if (javaVersion > 62.0) { - System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 18 is supported."); + if (javaVersion > 63.0) { + System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 19 is supported."); return; }