Open Joo200 opened 2 years ago
I removed the duplicated MinecraftVersion class and added some code to detect the used Minecraft version based on the DataVersion of the server.
The DataVersion is accesible through Bukkit.getUnsafe().getDataVersion() since 1.13.x. https://minecraft.fandom.com/wiki/Data_version#List_of_data_versions
Depending on your used server the version string might be malformed. The DataVersion should work but is not accessible in Bukkit =< 1.12
I removed the duplicated MinecraftVersion class and added some code to detect the used Minecraft version based on the DataVersion of the server.
The DataVersion is accesible through Bukkit.getUnsafe().getDataVersion() since 1.13.x. https://minecraft.fandom.com/wiki/Data_version#List_of_data_versions
Depending on your used server the version string might be malformed. The DataVersion should work but is not accessible in Bukkit =< 1.12