From 96215c5a7ca183acef518921d9857746fa47e190 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Sat, 19 Nov 2016 00:36:36 +0100 Subject: [PATCH] Update for MC 1.11 --- src/at/pcgamingfreaks/MinePacks/Database/Config.java | 7 ------- src/at/pcgamingfreaks/MinePacks/MinePacks.java | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/at/pcgamingfreaks/MinePacks/Database/Config.java b/src/at/pcgamingfreaks/MinePacks/Database/Config.java index bf6846f..f61bf35 100644 --- a/src/at/pcgamingfreaks/MinePacks/Database/Config.java +++ b/src/at/pcgamingfreaks/MinePacks/Database/Config.java @@ -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() { diff --git a/src/at/pcgamingfreaks/MinePacks/MinePacks.java b/src/at/pcgamingfreaks/MinePacks/MinePacks.java index 8436dda..6cc19d5 100644 --- a/src/at/pcgamingfreaks/MinePacks/MinePacks.java +++ b/src/at/pcgamingfreaks/MinePacks/MinePacks.java @@ -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("_");