We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6032043 commit 62174c6Copy full SHA for 62174c6
implementations/spigot/src/main/java/de/bluecolored/bluemap/bukkit/BukkitPlugin.java
@@ -80,6 +80,11 @@ public BukkitPlugin() {
80
Matcher versionMatcher = Pattern.compile("(\\d+(?:\\.\\d+){1,2})[-_].*").matcher(versionString);
81
if (!versionMatcher.matches()) throw new IllegalArgumentException();
82
version = versionMatcher.group(1);
83
+
84
+ // minecraft omits .0 in its versions (e.g. 1.21 instead of 1.21.0) so we should remove it as well
85
+ if (version.endsWith(".0"))
86
+ version = version.substring(0, version.length() - 2);
87
88
} catch (IllegalArgumentException e) {
89
Logger.global.logWarning("Failed to detect the minecraft version of this server! Using latest version.");
90
}
0 commit comments