Inventory inventory = new Inventory(InventoryType.CHEST_1_ROW, "The inventory name");
// Open the inventory for the player
// (Opening the same inventory for multiple players would result in a shared interface)
player.openInventory(inventory);
// Close the current player inventory