2014-07-20 12:02:17 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
|
|
namespace MinecraftClient.Commands
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Log : Command
|
|
|
|
|
|
{
|
|
|
|
|
|
public override string CMDName { get { return "log"; } }
|
|
|
|
|
|
public override string CMDDesc { get { return "log <text>: log some text to the console."; } }
|
|
|
|
|
|
|
2020-03-27 21:14:05 +01:00
|
|
|
|
public override string Run(McTcpClient handler, string command, Dictionary<string, object> localVars)
|
2014-07-20 12:02:17 +02:00
|
|
|
|
{
|
|
|
|
|
|
if (hasArg(command))
|
|
|
|
|
|
{
|
2015-06-21 16:40:13 +02:00
|
|
|
|
ConsoleIO.WriteLogLine(getArg(command));
|
2014-07-20 12:02:17 +02:00
|
|
|
|
return "";
|
|
|
|
|
|
}
|
|
|
|
|
|
else return CMDDesc;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|