diff --git a/paper-server/pom.xml b/paper-server/pom.xml
index 411cb525f3..1ed5ad2f4e 100644
--- a/paper-server/pom.xml
+++ b/paper-server/pom.xml
@@ -290,7 +290,7 @@
org.mockito
mockito-core
- 5.11.0
+ 5.14.1
test
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 3563b38f7b..677c8444c5 100644
--- a/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java
+++ b/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java
@@ -162,8 +162,8 @@ public class Main {
}
float javaVersion = Float.parseFloat(System.getProperty("java.class.version"));
- if (javaVersion > 66.0) {
- System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 22 is supported.");
+ if (javaVersion > 67.0) {
+ System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 23 is supported.");
return;
}