Initial Commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package net.t2code.lib.Spigot.Lib.minecraftVersion;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
public class MCVersion {
|
||||
public static String isVersion;
|
||||
public static String isBuckitVersion;
|
||||
public static boolean minecraft1_8;
|
||||
public static boolean minecraft1_9;
|
||||
public static boolean minecraft1_10;
|
||||
public static boolean minecraft1_11;
|
||||
public static boolean minecraft1_12;
|
||||
public static boolean minecraft1_13;
|
||||
public static boolean minecraft1_14;
|
||||
public static boolean minecraft1_15;
|
||||
public static boolean minecraft1_16;
|
||||
public static boolean minecraft1_17;
|
||||
public static boolean minecraft1_18;
|
||||
public static void onCheck(){
|
||||
isVersion = Bukkit.getServer().getVersion();
|
||||
isBuckitVersion = Bukkit.getServer().getBukkitVersion();
|
||||
minecraft1_8 = Bukkit.getServer().getClass().getPackage().getName().contains("1_8");
|
||||
minecraft1_9 = Bukkit.getServer().getClass().getPackage().getName().contains("1_9");
|
||||
minecraft1_10 = Bukkit.getServer().getClass().getPackage().getName().contains("1_10");
|
||||
minecraft1_11 = Bukkit.getServer().getClass().getPackage().getName().contains("1_11");
|
||||
minecraft1_12 = Bukkit.getServer().getClass().getPackage().getName().contains("1_12");
|
||||
minecraft1_13 = Bukkit.getServer().getClass().getPackage().getName().contains("1_13");
|
||||
minecraft1_14 = Bukkit.getServer().getClass().getPackage().getName().contains("1_14");
|
||||
minecraft1_15 = Bukkit.getServer().getClass().getPackage().getName().contains("1_15");
|
||||
minecraft1_16 = Bukkit.getServer().getClass().getPackage().getName().contains("1_16");
|
||||
minecraft1_17 = Bukkit.getServer().getClass().getPackage().getName().contains("1_17");
|
||||
minecraft1_18 = Bukkit.getServer().getClass().getPackage().getName().contains("1_18");
|
||||
}
|
||||
}
|
@@ -0,0 +1,47 @@
|
||||
package net.t2code.lib.Spigot.Lib.minecraftVersion;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
public class NMSVersion {
|
||||
public static String isNMS;
|
||||
public static boolean v1_8_R1;
|
||||
public static boolean v1_8_R2;
|
||||
public static boolean v1_8_R3;
|
||||
public static boolean v1_9_R1;
|
||||
public static boolean v1_9_R2;
|
||||
public static boolean v1_10_R1;
|
||||
public static boolean v1_11_R1;
|
||||
public static boolean v1_12_R1;
|
||||
public static boolean v1_13_R1;
|
||||
public static boolean v1_13_R2;
|
||||
public static boolean v1_14_R1;
|
||||
public static boolean v1_15_R1;
|
||||
public static boolean v1_16_R1;
|
||||
public static boolean v1_16_R2;
|
||||
public static boolean v1_16_R3;
|
||||
public static boolean v1_17_R1;
|
||||
public static boolean v1_18_R1;
|
||||
public static boolean v1_18_R2;
|
||||
|
||||
public static void onCheck() {
|
||||
isNMS = Bukkit.getServer().getClass().getPackage().getName();
|
||||
v1_8_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_8_R1");
|
||||
v1_8_R2 = Bukkit.getServer().getClass().getPackage().getName().contains("1_8_R2");
|
||||
v1_8_R3 = Bukkit.getServer().getClass().getPackage().getName().contains("1_8_R3");
|
||||
v1_9_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_9_R1");
|
||||
v1_9_R2 = Bukkit.getServer().getClass().getPackage().getName().contains("1_9_R2");
|
||||
v1_10_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_10_R1");
|
||||
v1_11_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_11_R1");
|
||||
v1_12_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_12_R1");
|
||||
v1_13_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_13_R1");
|
||||
v1_13_R2 = Bukkit.getServer().getClass().getPackage().getName().contains("1_13_R2");
|
||||
v1_14_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_14_R1");
|
||||
v1_15_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_15_R1");
|
||||
v1_16_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_16_R1");
|
||||
v1_16_R2 = Bukkit.getServer().getClass().getPackage().getName().contains("1_16_R2");
|
||||
v1_16_R3 = Bukkit.getServer().getClass().getPackage().getName().contains("1_16_R3");
|
||||
v1_17_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_17_R1");
|
||||
v1_18_R1 = Bukkit.getServer().getClass().getPackage().getName().contains("1_18_R1");
|
||||
v1_18_R2 = Bukkit.getServer().getClass().getPackage().getName().contains("1_18_R2");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user