This commit is contained in:
BruceChen 2022-10-26 08:54:54 +08:00
parent a1259edcae
commit f8aefaf129
39 changed files with 353 additions and 66 deletions

View file

@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Linq;
using Brigadier.NET;
using MinecraftClient.Inventory;
namespace MinecraftClient.Commands
@ -10,6 +11,10 @@ namespace MinecraftClient.Commands
public override string CmdUsage { get { return "enchant <top|middle|bottom>"; } }
public override string CmdDesc { get { return "cmd.enchant.desc"; } }
public override void RegisterCommand(McClient handler, CommandDispatcher<CommandSource> dispatcher)
{
}
public override string Run(McClient handler, string command, Dictionary<string, object>? localVars)
{
if (!handler.GetInventoryEnabled())