PlasmaVNGaming

Untitled

Jul 31st, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public static ItemStack PlayerSkull(String name) {
  2. //name là tên Skin.
  3. ItemStack item = new ItemStack(Material.SKULL_ITEM, 1, (short) SkullType.PLAYER.ordinal());
  4. SkullMeta im = (SkullMeta) item.getItemMeta();
  5. im.setOwner(name);
  6. item.setItemMeta(im);
  7. return item;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment