Update to V1.16.4

Update for MC 1.11
This commit is contained in:
GeorgH93 2016-11-19 00:31:02 +01:00
parent 122ae41b0d
commit 241527aac6
3 changed files with 4 additions and 11 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>at.pcgamingfreaks</groupId>
<artifactId>MinePacks</artifactId>
<version>1.16.3.1</version>
<version>1.16.4</version>
<scm>
<connection>scm:git:git@github.com:GeorgH93/Bukkit_Minepacks.git</connection>
@ -45,13 +45,13 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>LATEST</version>
<version>1.11-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>at.pcgamingfreaks</groupId>
<artifactId>Bukkit_Bungee_PluginLib</artifactId>
<version>LATEST</version>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>

View File

@ -34,13 +34,6 @@ public Config(JavaPlugin plugin)
super(plugin, CONFIG_VERSION, CONFIG_VERSION);
}
@Override
protected boolean newConfigCreated()
{
config.set("Database.UseUUIDs", Bukkit.getServer().getOnlineMode() && isBukkitVersionUUIDCompatible());
return !(Bukkit.getServer().getOnlineMode() && isBukkitVersionUUIDCompatible());
}
@Override
protected void doUpdate()
{

View File

@ -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]) > 10) || Integer.valueOf(version[0]) > 1)
if((version[0].equals("1") && Integer.valueOf(version[1]) > 11) || Integer.valueOf(version[0]) > 1)
{
MinePacks.getInstance().warnOnVersionIncompatibility(version[0] + "." + version[1]);
this.setEnabled(false);