Skip to content

Commit 04b281c

Browse files
committed
26.1 part 6: handle Java 25
1 parent a6b23a9 commit 04b281c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

plugin/src/main/java/com/denizenscript/denizen/Denizen.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,14 @@ else if (javaVersion.startsWith("17")) {
147147
Debug.log("Running on fully supported Java 17.");
148148
}
149149
else if (javaVersion.startsWith("18") || javaVersion.startsWith("19")) {
150-
getLogger().warning("Running unreliable Java version. modern Minecraft versions are built for Java 21 or 17. Other Java versions are not guaranteed to function properly.");
150+
getLogger().warning("Running unreliable Java version. modern Minecraft versions are built for Java 25, 21, or 17. Other Java versions are not guaranteed to function properly.");
151151
}
152152
else if (javaVersion.startsWith("21")) {
153153
Debug.log("Running on fully supported Java 21.");
154154
}
155+
else if (javaVersion.startsWith("25")) {
156+
Debug.log("Running on fully supported Java 25.");
157+
}
155158
else {
156159
Debug.log("Running on unrecognized (future?) Java version. May or may not work.");
157160
}

0 commit comments

Comments
 (0)