2022-10-02 18:31:08 +08:00
|
|
|
|
using System.Collections.Generic;
|
2014-06-18 13:32:17 +02:00
|
|
|
|
|
|
|
|
|
|
namespace MinecraftClient.Commands
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Reco : Command
|
|
|
|
|
|
{
|
2020-10-17 19:41:31 +08:00
|
|
|
|
public override string CmdName { get { return "reco"; } }
|
|
|
|
|
|
public override string CmdUsage { get { return "reco [account]"; } }
|
2022-10-28 11:13:20 +08:00
|
|
|
|
public override string CmdDesc { get { return Translations.cmd_reco_desc; } }
|
2014-06-18 13:32:17 +02:00
|
|
|
|
|
2022-10-02 18:31:08 +08:00
|
|
|
|
public override string Run(McClient? handler, string command, Dictionary<string, object>? localVars)
|
2014-06-18 13:32:17 +02:00
|
|
|
|
{
|
2022-10-02 18:31:08 +08:00
|
|
|
|
string[] args = GetArgs(command);
|
2014-06-19 19:24:03 +02:00
|
|
|
|
if (args.Length > 0)
|
|
|
|
|
|
{
|
2022-10-05 15:02:30 +08:00
|
|
|
|
if (!Settings.Config.Main.Advanced.SetAccount(args[0]))
|
2014-06-19 19:24:03 +02:00
|
|
|
|
{
|
2022-10-28 11:13:20 +08:00
|
|
|
|
return string.Format(Translations.cmd_connect_unknown, args[0]);
|
2014-06-19 19:24:03 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2014-06-18 13:32:17 +02:00
|
|
|
|
Program.Restart();
|
|
|
|
|
|
return "";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|