smal changes

This commit is contained in:
2022-06-08 06:27:05 +02:00
parent 72d33dca90
commit fb289bd66e
5 changed files with 24 additions and 11 deletions

View File

@@ -17,6 +17,7 @@ public class MCVersion {
public static boolean minecraft1_17;
public static boolean minecraft1_18;
public static boolean minecraft1_19;
public static boolean minecraft1_20;
public static void onCheck(){
isVersion = Bukkit.getServer().getVersion();
isBuckitVersion = Bukkit.getServer().getBukkitVersion();
@@ -32,5 +33,6 @@ public class MCVersion {
minecraft1_17 = Bukkit.getServer().getClass().getPackage().getName().contains("1_17");
minecraft1_18 = Bukkit.getServer().getClass().getPackage().getName().contains("1_18");
minecraft1_19 = Bukkit.getServer().getClass().getPackage().getName().contains("1_19");
minecraft1_20 = Bukkit.getServer().getClass().getPackage().getName().contains("1_20");
}
}

View File

@@ -23,6 +23,7 @@ public class NMSVersion {
public static boolean v1_18_R1;
public static boolean v1_18_R2;
public static boolean v1_19_R1;
public static boolean v1_19_R2;
public static void onCheck() {
isNMS = Bukkit.getServer().getClass().getPackage().getName();
@@ -45,5 +46,6 @@ public class NMSVersion {
v1_18_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_18_R1");
v1_18_R2 = Bukkit.getServer().getClass().getPackage().getName().contains("1_18_R2");
v1_19_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_19_R1");
v1_19_R2 = Bukkit.getServer().getClass().getPackage().getName().contains("1_19_R2");
}
}

View File

@@ -122,7 +122,11 @@ public final class T2CodeMain extends JavaPlugin {
NMSVersion.onCheck();
MCVersion.onCheck();
if (MCVersion.minecraft1_19) {
send.console(prefix + " §4!!!!!!!!!!!!!!!!!!!!");
send.console(prefix );
send.warning(this, "The 1.19 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");
send.console(prefix);
send.console(prefix + " §4!!!!!!!!!!!!!!!!!!!!");
try {
Thread.sleep(5000);
} catch (InterruptedException e) {