2022-10-02 18:31:08 +08:00
|
|
|
|
using System.Collections.Generic;
|
2014-07-20 12:02:17 +02:00
|
|
|
|
|
|
|
|
|
|
namespace MinecraftClient.Commands
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Log : Command
|
|
|
|
|
|
{
|
2020-10-17 19:41:31 +08:00
|
|
|
|
public override string CmdName { get { return "log"; } }
|
|
|
|
|
|
public override string CmdUsage { get { return "log <text>"; } }
|
|
|
|
|
|
public override string CmdDesc { get { return "cmd.log.desc"; } }
|
2014-07-20 12:02:17 +02:00
|
|
|
|
|
2022-10-02 18:31:08 +08:00
|
|
|
|
public override string Run(McClient handler, string command, Dictionary<string, object>? localVars)
|
2014-07-20 12:02:17 +02:00
|
|
|
|
{
|
2022-10-02 18:31:08 +08:00
|
|
|
|
if (HasArg(command))
|
2014-07-20 12:02:17 +02:00
|
|
|
|
{
|
2022-10-02 18:31:08 +08:00
|
|
|
|
ConsoleIO.WriteLogLine(GetArg(command));
|
2014-07-20 12:02:17 +02:00
|
|
|
|
return "";
|
|
|
|
|
|
}
|
2020-10-17 19:41:31 +08:00
|
|
|
|
else return GetCmdDescTranslated();
|
2014-07-20 12:02:17 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|