Added 1.12.x compatibility, not tested yet (#90)

This commit is contained in:
Rammelkast committed 2020-10-18 12:05:54 +02:00
1 parent a84b573fa8
commit 1428b55591
3 files changed
+9 -5

No files matched your search

@@ -36,7 +36,7 @@ import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
public class VersionUtil {
private static final List<String> SUPPORTED_VERSIONS = Arrays
.asList(new String[] { "v1_16", "v1_15", "v1_14", "v1_13", "v1_8_R3" });
.asList(new String[] { "v1_16", "v1_15", "v1_14", "v1_13", "v1_12", "v1_8_R3" });
public static String getVersion() {
return Bukkit.getServer().getClass().getPackage().getName().replace(".", ",").split(",")[3];