I have made a minecraft bukkit plugin which is a gamemode changer GUI but I can't figure out how to change the block names in the inventory that I opened up. At the moment all they say is Iron_Block, Gold_block ...etc
If anyone could help me that would be very helpful
This is the inventory code bit
public static Inventory myInventory = Bukkit.createInventory(null, 9, "GamemodeGUI");
static {
myInventory.setItem(0, new ItemStack(Material.IRON_BLOCK, 1)); //Survival
myInventory.setItem(1, new ItemStack(Material.DIAMOND_BLOCK, 1)); //Creative
myInventory.setItem(2, new ItemStack(Material.GOLD_BLOCK, 1)); //Adventure
myInventory.setItem(3, new ItemStack(Material.LAPIS_BLOCK, 1)); //Spectator
myInventory.setItem(8, new ItemStack(Material.STAINED_GLASS, 1)); //Cancel
}