Update to MC 1.12

This commit is contained in:
GeorgH93 2017-06-09 02:07:06 +02:00
parent 231b398b66
commit 58de4fec7d
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.11-R0.1-SNAPSHOT</version>
<version>1.12-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -82,7 +82,7 @@ public void onEnable()
Utils.warnOnJava_1_7(getLogger());
version = new Version(getDescription().getVersion());
//region Check compatibility with used minecraft version
if(MCVersion.is(MCVersion.UNKNOWN) || MCVersion.isNewerThan(MCVersion.MC_NMS_1_11_R1))
if(MCVersion.is(MCVersion.UNKNOWN) || MCVersion.isNewerThan(MCVersion.MC_NMS_1_12_R1))
{
String name = Bukkit.getServer().getClass().getPackage().getName();
String[] version = name.substring(name.lastIndexOf('.') + 2).split("_");