Fix script not showing execution results.

This commit is contained in:
BruceChen 2023-01-15 19:59:57 +08:00
parent 8db0467f69
commit 338f534239
5 changed files with 88 additions and 7 deletions

View file

@ -20,7 +20,7 @@ namespace MinecraftClient.Commands
);
dispatcher.Register(l => l.Literal(CmdName)
.Then(l => l.Argument("Script", Arguments.GreedyString())
.Then(l => l.Argument("Script", MccArguments.ScriptName())
.Executes(r => DoExecuteScript(r.Source, Arguments.GetString(r, "Script"), null)))
.Then(l => l.Literal("_help")
.Executes(r => GetUsage(r.Source, string.Empty))