16.7
Debug messages removed
This commit is contained in:
parent
32b57de55c
commit
b8c65cb537
6
pom.xml
6
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>T2CodeLib</artifactId>
|
<artifactId>T2CodeLib</artifactId>
|
||||||
<version>16.6</version>
|
<version>16.7</version>
|
||||||
<!--version>VERSION_snapshot-0</version-->
|
<!--version>VERSION_snapshot-0</version-->
|
||||||
<!--version>VERSION_beta-0</version-->
|
<!--version>VERSION_beta-0</version-->
|
||||||
<!--version>VERSION_dev-0</version-->
|
<!--version>VERSION_dev-0</version-->
|
||||||
@ -27,8 +27,8 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.8.1</version>
|
<version>3.8.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>9</source>
|
<source>${java.version}</source>
|
||||||
<target>9</target>
|
<target>${java.version}</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -13,9 +13,9 @@ public class T2CmcVersion {
|
|||||||
bukkitVersion = Bukkit.getServer().getBukkitVersion();
|
bukkitVersion = Bukkit.getServer().getBukkitVersion();
|
||||||
T2CnmsVersions.init();
|
T2CnmsVersions.init();
|
||||||
nms = String.valueOf(T2CnmsVersions.getT2CnmsEnum());
|
nms = String.valueOf(T2CnmsVersions.getT2CnmsEnum());
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), "mcVersion: " + mcVersion);
|
// T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), "mcVersion: " + mcVersion);
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), "bukkitVersion: " + bukkitVersion);
|
// T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), "bukkitVersion: " + bukkitVersion);
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), "nms: " + nms);
|
// T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), "nms: " + nms);
|
||||||
|
|
||||||
mc1_8 = mcVersion.contains("MC: 1.8");
|
mc1_8 = mcVersion.contains("MC: 1.8");
|
||||||
mc1_9 = mcVersion.contains("MC: 1.9");
|
mc1_9 = mcVersion.contains("MC: 1.9");
|
||||||
|
@ -17,84 +17,57 @@ public class T2CnmsVersions {
|
|||||||
|
|
||||||
if (mc.contains("(MC: 1.8)") || mc.contains("(MC: 1.8.1)")) {
|
if (mc.contains("(MC: 1.8)") || mc.contains("(MC: 1.8.1)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_8_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_8_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.8.3)")) {
|
} else if (mc.contains("(MC: 1.8.3)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_8_R2;
|
t2CnmsEnum = T2CnmsEnum.v1_8_R2;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.8.4)") || mc.contains("(MC: 1.8.5)") || mc.contains("(MC: 1.8.6)") || mc.contains("(MC: 1.8.7)") || mc.contains("(MC: 1.8.8)")) {
|
} else if (mc.contains("(MC: 1.8.4)") || mc.contains("(MC: 1.8.5)") || mc.contains("(MC: 1.8.6)") || mc.contains("(MC: 1.8.7)") || mc.contains("(MC: 1.8.8)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_8_R3;
|
t2CnmsEnum = T2CnmsEnum.v1_8_R3;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.9)") || mc.contains("(MC: 1.9.2)")) {
|
} else if (mc.contains("(MC: 1.9)") || mc.contains("(MC: 1.9.2)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_9_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_9_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.9.3)") || mc.contains("(MC: 1.9.4)")) {
|
} else if (mc.contains("(MC: 1.9.3)") || mc.contains("(MC: 1.9.4)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_9_R2;
|
t2CnmsEnum = T2CnmsEnum.v1_9_R2;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.10")) {
|
} else if (mc.contains("(MC: 1.10")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_10_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_10_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.11")) {
|
} else if (mc.contains("(MC: 1.11")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_11_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_11_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.12")) {
|
} else if (mc.contains("(MC: 1.12")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_12_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_12_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.13)")) {
|
} else if (mc.contains("(MC: 1.13)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_13_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_13_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.13.1)") || mc.contains("(MC: 1.13.2)")) {
|
} else if (mc.contains("(MC: 1.13.1)") || mc.contains("(MC: 1.13.2)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_13_R2;
|
t2CnmsEnum = T2CnmsEnum.v1_13_R2;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.14")) {
|
} else if (mc.contains("(MC: 1.14")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_14_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_14_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.15")) {
|
} else if (mc.contains("(MC: 1.15")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_15_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_15_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.16)") || mc.contains("(MC: 1.16.1)")) {
|
} else if (mc.contains("(MC: 1.16)") || mc.contains("(MC: 1.16.1)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_16_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_16_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.16.2)") || mc.contains("(MC: 1.16.3)")) {
|
} else if (mc.contains("(MC: 1.16.2)") || mc.contains("(MC: 1.16.3)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_16_R2;
|
t2CnmsEnum = T2CnmsEnum.v1_16_R2;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.16.4)") || mc.contains("(MC: 1.16.5)")) {
|
} else if (mc.contains("(MC: 1.16.4)") || mc.contains("(MC: 1.16.5)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_16_R3;
|
t2CnmsEnum = T2CnmsEnum.v1_16_R3;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.17")) {
|
} else if (mc.contains("(MC: 1.17")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_17_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_17_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.18)") || mc.contains("(MC: 1.18.1)")) {
|
} else if (mc.contains("(MC: 1.18)") || mc.contains("(MC: 1.18.1)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_18_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_18_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.18.2)")) {
|
} else if (mc.contains("(MC: 1.18.2)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_18_R2;
|
t2CnmsEnum = T2CnmsEnum.v1_18_R2;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.19)") || mc.contains("(MC: 1.19.1)") || mc.contains("(MC: 1.19.2)")) {
|
} else if (mc.contains("(MC: 1.19)") || mc.contains("(MC: 1.19.1)") || mc.contains("(MC: 1.19.2)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_19_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_19_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.19.3)")) {
|
} else if (mc.contains("(MC: 1.19.3)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_19_R2;
|
t2CnmsEnum = T2CnmsEnum.v1_19_R2;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.19.4)")) {
|
} else if (mc.contains("(MC: 1.19.4)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_19_R3;
|
t2CnmsEnum = T2CnmsEnum.v1_19_R3;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.20)") || mc.contains("(MC: 1.20.1)")) {
|
} else if (mc.contains("(MC: 1.20)") || mc.contains("(MC: 1.20.1)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_20_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_20_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.20.2)")) {
|
} else if (mc.contains("(MC: 1.20.2)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_20_R2;
|
t2CnmsEnum = T2CnmsEnum.v1_20_R2;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.20.3)") || mc.contains("(MC: 1.20.4)")) {
|
} else if (mc.contains("(MC: 1.20.3)") || mc.contains("(MC: 1.20.4)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_20_R3;
|
t2CnmsEnum = T2CnmsEnum.v1_20_R3;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.20.6)")) {
|
} else if (mc.contains("(MC: 1.20.6)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_20_R4;
|
t2CnmsEnum = T2CnmsEnum.v1_20_R4;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else if (mc.contains("(MC: 1.21)")) {
|
} else if (mc.contains("(MC: 1.21)")) {
|
||||||
t2CnmsEnum = T2CnmsEnum.v1_21_R1;
|
t2CnmsEnum = T2CnmsEnum.v1_21_R1;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
} else t2CnmsEnum = T2CnmsEnum.not_support;
|
} else t2CnmsEnum = T2CnmsEnum.not_support;
|
||||||
T2Cdebug.debugmsg(T2CodeLibMain.getPlugin(), String.valueOf(t2CnmsEnum));
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user