mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-12-31 18:17:49 +01:00
Add support for MC 1.12 (pre)
This commit is contained in:
parent
2c95f2bed9
commit
f197bc2667
@ -65,7 +65,7 @@ public void onEnable()
|
||||
//region Check compatibility with used minecraft version
|
||||
String name = Bukkit.getServer().getClass().getPackage().getName();
|
||||
String[] version = name.substring(name.lastIndexOf('.') + 2).split("_");
|
||||
if((version[0].equals("1") && Integer.valueOf(version[1]) > 11) || Integer.valueOf(version[0]) > 1)
|
||||
if((version[0].equals("1") && Integer.valueOf(version[1]) > 12) || Integer.valueOf(version[0]) > 1)
|
||||
{
|
||||
MinePacks.getInstance().warnOnVersionIncompatibility(version[0] + "." + version[1]);
|
||||
this.setEnabled(false);
|
||||
|
Loading…
Reference in New Issue
Block a user