Interact with inventories

The /inventory command allow listing inventory and clicking on items
Should be enough for operating GUI menus such as Server chooser/teleporter
This commit is contained in:
ORelio 2020-03-29 18:41:26 +02:00
parent bc3d6aba00
commit e04f06cece
13 changed files with 574 additions and 217 deletions

View file

@ -12,8 +12,12 @@ namespace MinecraftClient.Commands
public override string Run(McTcpClient handler, string command, Dictionary<string, object> localVars)
{
handler.UseItemOnHand();
return "Use an item";
if (handler.GetInventoryEnabled())
{
handler.UseItemOnHand();
return "Used an item";
}
else return "Please enable inventoryhandling in config to use this command.";
}
}
}