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,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Brigadier.NET;
using DynamicExpresso;
namespace MinecraftClient.Commands
@ -11,6 +12,10 @@ namespace MinecraftClient.Commands
public override string CmdUsage { get { return "execif <condition/expression> ---> <command>"; } }
public override string CmdDesc { get { return "cmd.execif.desc"; } }
public override void RegisterCommand(McClient handler, CommandDispatcher<CommandSource> dispatcher)
{
}
public override string Run(McClient handler, string command, Dictionary<string, object>? localVars)
{
if (HasArg(command))