Script Works?

This commit is contained in:
bearbear12345 2013-07-20 11:01:49 +10:00
parent 0332df909c
commit 7e70494f23
7 changed files with 94 additions and 15 deletions

View file

@ -141,7 +141,7 @@ namespace MinecraftClient
ChatBot.LogToConsole("Waiting 5 seconds (" + AttemptsLeft + " attempts left)...");
Thread.Sleep(5000); AttemptsLeft--; Program.Restart();
}
else if (!singlecommand){ Console.ReadLine(); }
else if (!singlecommand) { Console.ReadLine(); }
}
}
@ -156,6 +156,11 @@ namespace MinecraftClient
{
while (client.Client.Connected)
{
if (Program.scripting_enabled)
{
handler.BotLoad(new Bots.scripting(Program.scripting_param));
Program.scripting_enabled = false;
}
text = ConsoleIO.ReadLine();
if (text == "/quit" || text == "/reco" || text == "/reconnect") { break; }
while (text.Length > 0 && text[0] == ' ') { text = text.Substring(1); }