Skip to content

Commit 0c4dbbe

Browse files
committed
Warn when not using Java 21+
1 parent 1750131 commit 0c4dbbe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/src/main/java/com/viaversion/viaversion/ViaManagerImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,12 @@ private void checkJavaVersion() { // Stolen from Paper
244244
}
245245

246246
if (version < 17) {
247-
platform.getLogger().warning("You are running an outdated Java version, please update it to at least Java 17 (your version is " + javaVersion + ").");
247+
platform.getLogger().warning("You are running an outdated Java version, please update it to at least Java 21 (your version is " + javaVersion + ").");
248248
platform.getLogger().warning("ViaVersion no longer officially supports this version of Java, only offering unsupported compatibility builds.");
249249
platform.getLogger().warning("See https://github.com/ViaVersion/ViaVersion/releases/tag/5.0.0 for more information.");
250+
} else if (version < 21) {
251+
platform.getLogger().warning("Please update your Java runtime to at least Java 21 (your version is " + javaVersion + ").");
252+
platform.getLogger().warning("At some point in the future, ViaVersion will no longer be compatible with this version of Java.");
250253
}
251254
}
252255

0 commit comments

Comments
 (0)