Release Version 2.0

This commit is contained in:
Sn0wStorm
2019-12-13 13:23:40 +01:00
parent 9afeae7774
commit e7a77bf2a1
6 changed files with 5 additions and 18 deletions
@@ -261,17 +261,14 @@ public class LegacyUtil {
try {
Class.forName("org.bukkit.persistence.PersistentDataContainer");
NewNbtVer = true;
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.log("Using the OLD nbt api");
return true;
} catch (ClassNotFoundException ex) {
NewNbtVer = false;
P.p.log("No nbt api found, using Lore Save System");
return false;
}
}