Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void saveNBT(ConfigurationSection section, ItemStack itemStack) {
- if (itemStack.getType() == Material.SKULL_ITEM) {
- ItemStack stack = NbtFactory.getCraftItemStack(itemStack);
- NbtFactory.NbtCompound compound = NbtFactory.fromItemTag(stack);
- String skullOwner = compound.getString("SkullOwner", "test"); //error on this line
- section.set("owner", skullOwner);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement