Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onClick(InventoryClickEvent e) {
- try {
- Player p = (Player)e.getWhoClicked();
- if(e.getCurrentItem().getItemMeta().getDisplayName().equals("§a§lKöpfe") && e.getCurrentItem().getType() == Material.SKULL_ITEM) {
- Inventory inv = Bukkit.createInventory(null, 5*9, "§8» §3§lKöpfe §8«");
- ItemStack Kopf1 = new ItemStack(Material.SKULL_ITEM, 1, (byte) 3);
- SkullMeta Kopf1meta = (SkullMeta) Kopf1.getItemMeta();
- Kopf1meta.setOwner("xdrawngamerhd");
- Kopf1meta.setDisplayName("§aKopf von xDrawnGamerHD");
- ArrayList<String> Kopf1lore = new ArrayList<>();
- Kopf1lore.add("§3➤ §cBester Kopf!");
- Kopf1meta.setLore(Kopf1lore);
- Kopf1.setItemMeta(Kopf1meta);
- inv.setItem(1, Kopf1);
- p.getPlayer().playSound(p.getPlayer().getLocation(), Sound.CHEST_OPEN, 1F, 1F);
- p.openInventory(inv);
- p.sendMessage(Main.Prefix + "§cDieses Feature ist bald verfügbar.");
- } else {
- return;
- }
- } catch(Exception e0) {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement