Advertisement
Guest User

Untitled

a guest
Dec 25th, 2014
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. public void saveNBT(ConfigurationSection section, ItemStack itemStack) {
  2.     if (itemStack.getType() == Material.SKULL_ITEM) {
  3.         ItemStack stack = NbtFactory.getCraftItemStack(itemStack);
  4.         NbtFactory.NbtCompound compound = NbtFactory.fromItemTag(stack);
  5.         String skullOwner = compound.getString("SkullOwner", "test"); //error on this line
  6.  
  7.         section.set("owner", skullOwner);
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement