/** * Create a custom inventory. * * @param title title to give the inventory (color codes supported with & prefix) * @param rows rows to give the inventory * @return an inventory with the title, and rows. */ public static Inventory makeInventory(String title, int rows) { return Bukkit.getServer().createInventory(null, rows * 9, StringUtil.formatColorCodes(title)); }