mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
parent
c581ac95c3
commit
0b31f70d7b
1 changed files with 2 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ namespace MinecraftClient.Commands
|
|||
else return "Failed to close Inventory #" + inventoryId;
|
||||
case "list":
|
||||
Container inventory = handler.GetInventory(inventoryId);
|
||||
if(inventory==null)
|
||||
return "Inventory #" + inventoryId + " do not exist";
|
||||
List<string> response = new List<string>();
|
||||
response.Add("Inventory #" + inventoryId + " - " + inventory.Title + "§8");
|
||||
foreach (KeyValuePair<int, Item> item in inventory.Items)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue