Update for MC 1.11

This commit is contained in:
GeorgH93 2016-11-19 00:36:36 +01:00
parent 6edc661b06
commit 96215c5a7c
2 changed files with 1 additions and 8 deletions

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

@ -63,7 +63,7 @@ public void onEnable()
Utils.warnOnJava_1_7(log);
instance = this;
//region Check compatibility with used minecraft version
if(MCVersion.is(MCVersion.UNKNOWN) || MCVersion.isNewerThan(MCVersion.MC_NMS_1_10_R1))
if(MCVersion.is(MCVersion.UNKNOWN) || MCVersion.isNewerThan(MCVersion.MC_NMS_1_11_R1))
{
String name = Bukkit.getServer().getClass().getPackage().getName();
String[] version = name.substring(name.lastIndexOf('.') + 2).split("_");