Fixed Exceptions and added NbtFactory by Comphenix