Skip to content

Instantly share code, notes, and snippets.

@phase
Created May 25, 2014 06:48
Show Gist options
  • Save phase/741f5715137257e9d98b to your computer and use it in GitHub Desktop.
Save phase/741f5715137257e9d98b to your computer and use it in GitHub Desktop.
public Inventory getTeamChoosingInv(){
Inventory i = Bukkit.createInventory(null, 9, "§6§l Choose Teams");
ItemStack star = new ItemStack(Material.NETHER_STAR, 1);
ItemMeta starMeta = star.getItemMeta();
starMeta.setDisplayName("§lAuto Join");
star.setItemMeta(starMeta);
i.setItem(2, star);
ItemStack red = new ItemStack(Material.WOOL, 1, (byte) 14);
ItemMeta redMeta = red.getItemMeta();
redMeta.setDisplayName("§c§lJoin Red Team");
red.setItemMeta(redMeta);
i.setItem(4, red);
ItemStack blue = new ItemStack(Material.WOOL, 1, (byte) 11);
ItemMeta blueMeta = red.getItemMeta();
blueMeta.setDisplayName("§b§lJoin Blue Team");
blue.setItemMeta(blueMeta);
i.setItem(5, blue);
return i;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment