Config updater for 2.0

+ config fixes & fix for unlabeled
This commit is contained in:
Sn0wStorm
2019-12-01 23:50:56 +01:00
parent c6ea0cd493
commit 4f0b56e2dc
19 changed files with 845 additions and 302 deletions
+3 -3
View File
@@ -261,17 +261,17 @@ public class LegacyUtil {
try {
Class.forName("org.bukkit.persistence.PersistentDataContainer");
NewNbtVer = true;
P.p.debugLog("Using the NEW nbt api");
P.p.log("Using the NEW nbt api");
return true;
} catch (ClassNotFoundException e) {
try {
Class.forName("org.bukkit.inventory.meta.tags.CustomItemTagContainer");
NewNbtVer = false;
P.p.debugLog("Using the OLD nbt api");
P.p.log("Using the OLD nbt api");
return true;
} catch (ClassNotFoundException ex) {
NewNbtVer = false;
P.p.debugLog("No nbt api found, using Lore Save System");
P.p.log("No nbt api found, using Lore Save System");
return false;
}
}