Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static ItemStack PlayerSkull(String name) {
- //name là tên Skin.
- ItemStack item = new ItemStack(Material.SKULL_ITEM, 1, (short) SkullType.PLAYER.ordinal());
- SkullMeta im = (SkullMeta) item.getItemMeta();
- im.setOwner(name);
- item.setItemMeta(im);
- return item;
- }
Advertisement
Add Comment
Please, Sign In to add comment