Sorry, i know ive made a few of these but i cannot find anywhere.
How can i add it so on my gui i can perform a command if one of the items are clicked.
Here is the code :
Thats not all of it.
How can i add it so on my gui i can perform a command if one of the items are clicked.
Here is the code :
Code:
ItemStack bo = new ItemStack(Material.REDSTONE, 1);
ItemMeta bometa = bo.getItemMeta();
bometa.setDisplayName(ChatColor.translateAlternateColorCodes('&', "&d&lSet a bounty on " + recieved.getName()));
bo.setItemMeta(bometa);
ArrayList<String> lore7 = new ArrayList<String>();
lore7.add(ChatColor.translateAlternateColorCodes('&', "&d&l* &7&lCurrently viewing settings for &d&l" + recieved.getName()));
meta.setLore(lore7);
//Row 1
i.setItem(0,empty);
i.setItem(1,empty);
i.setItem(2,empty);
i.setItem(3,empty);
i.setItem(4,skull);
i.setItem(5,empty);
i.setItem(6,empty);
i.setItem(7,empty);
i.setItem(8,empty);
//Row 2
i.setItem(9,empty);
i.setItem(10,al);
i.setItem(11,report);
i.setItem(12,msg);
i.setItem(13,tp);
i.setItem(14,fi);
i.setItem(15,ig);
i.setItem(16,bo);
i.setItem(17,empty);
//Row3
i.setItem(18,empty);
i.setItem(19,empty);
i.setItem(20,empty);
i.setItem(21,empty);
i.setItem(22,empty);
i.setItem(23,empty);
i.setItem(24,empty);
i.setItem(25,empty);
i.setItem(26,empty);
player.openInventory(i);
Thats not all of it.
