bukkit 1.14.4 inventory getname code example
Example: bukkit inventory set name
public static void setPlayerInventory(Player p) {
Inventory teamselector = Bukkit.createInventory(null, 9*1, "Teamselector"); //Teamselector will be the name of the inventory.
}