ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, (short) 3); SkullMeta meta = (SkullMeta) skull.getItemMeta(); meta.setOwner(); skull.setItemMeta(meta); p.getInventory().setHelmet(skull);
@Hex_27 What im getting from here is: You want to set a block by code, and then set the meta for that block, to make it a player skull?
@Hex_27 Code: Skull skull = // Create Skull Block Code SkullMeta skull_meta = skull.getItemMeta(); skull_meta.SOMETHING); Methods for SkullMeta: String getOwner() Gets the owner of the skull. boolean hasOwner() Checks to see if the skull has an owner. boolean setOwner(String owner)