15.1 | Stable 1.20 support

Stable 1.20 support
This commit is contained in:
JaTiTV 2023-06-19 14:30:37 +02:00
parent 1b8bedc4e6
commit b2ebce50ed
3 changed files with 8 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<groupId>net.t2code</groupId> <groupId>net.t2code</groupId>
<artifactId>T2CodeLib</artifactId> <artifactId>T2CodeLib</artifactId>
<version>15.0</version> <version>15.1</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-->

View File

@ -43,6 +43,7 @@ public class T2CmcVersion {
nms1_19_R1 = nms.contains("1_19_R1"); nms1_19_R1 = nms.contains("1_19_R1");
nms1_19_R2 = nms.contains("1_19_R2"); nms1_19_R2 = nms.contains("1_19_R2");
nms1_20_R1 = nms.contains("1_20_R1"); nms1_20_R1 = nms.contains("1_20_R1");
nms1_20_R2 = nms.contains("1_20_R2");
} }
private static String mcVersion; private static String mcVersion;
@ -83,6 +84,7 @@ public class T2CmcVersion {
private static boolean nms1_19_R1; private static boolean nms1_19_R1;
private static boolean nms1_19_R2; private static boolean nms1_19_R2;
private static boolean nms1_20_R1; private static boolean nms1_20_R1;
private static boolean nms1_20_R2;
public static String getMcVersion() { public static String getMcVersion() {
return mcVersion; return mcVersion;
@ -231,4 +233,7 @@ public class T2CmcVersion {
public static boolean isNms1_20_R1() { public static boolean isNms1_20_R1() {
return nms1_20_R1; return nms1_20_R1;
} }
public static boolean isNms1_20_R2() {
return nms1_20_R2;
}
} }

View File

@ -61,10 +61,10 @@ public final class T2CodeLibMain extends JavaPlugin {
} }
T2CmcVersion.onCheck(); T2CmcVersion.onCheck();
if (T2CmcVersion.isMc1_20()) { if (T2CmcVersion.isNms1_20_R2()) {
T2Csend.console(prefix + " §4!!!!!!!!!!!!!!!!!!!!"); T2Csend.console(prefix + " §4!!!!!!!!!!!!!!!!!!!!");
T2Csend.console(prefix); T2Csend.console(prefix);
T2Csend.warning(plugin, "The 1.20.* is a very fresh / new version. If there are any bugs in our plugins, please report them to us via our Discord: http://dc.t2code.net"); T2Csend.warning(plugin, "The 1.20.* (R2) is a very fresh / new version. If there are any bugs in our plugins, please report them to us via our Discord: http://dc.t2code.net");
T2Csend.console(prefix); T2Csend.console(prefix);
T2Csend.console(prefix + " §4!!!!!!!!!!!!!!!!!!!!"); T2Csend.console(prefix + " §4!!!!!!!!!!!!!!!!!!!!");
if (!SelectLibConfig.getT2cTestDevelopment()) { if (!SelectLibConfig.getT2cTestDevelopment()) {