How to create an inventory spigot code example
Example: spigot how to make an inventory
Inventory inv = Bukkit.createInventory(player, yourSize, "My Inventory Name");
Inventory inv = Bukkit.createInventory(player, yourSize, "My Inventory Name");