From 9cff7d3ca01b08661e34352496df022df79a1174 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 28 Mar 2022 08:10:25 +1100 Subject: [PATCH] Java 18 support 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 b857baaa76..1fff0fea15 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java @@ -153,8 +153,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 > 61.0) { - System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 17 is supported."); + if (javaVersion > 62.0) { + System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 18 is supported."); return; }