Commit 06c0cdc9 authored by Ashijin's avatar Ashijin
Browse files

Merge branch 'Terminated/dev' into 'master'

Use correct 1.19.3 nms version

See merge request !1
parents ad82d280 7a245add
......@@ -218,8 +218,12 @@ public class MCCosmeticsPlugin extends LuminePlugin {
String packageName = Bukkit.getServer().getClass().getPackage().getName();
String version = packageName.substring(packageName.lastIndexOf('.') + 1);
if(version.startsWith("v1_19") && !"1.19-R0.1-SNAPSHOT".equals(Bukkit.getBukkitVersion())) {
version = "v1_19_R1_2";
if (version.startsWith("v1_19")){
if("1.19.2-R0.1-SNAPSHOT".equals(Bukkit.getBukkitVersion())) {
version = "v1_19_R1_2";
} else if ("1.19.3-R0.1-SNAPSHOT".equals(Bukkit.getBukkitVersion())){
version = "v1_19_R2";
}
}
try {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment