mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Script Works?
This commit is contained in:
parent
0332df909c
commit
7e70494f23
7 changed files with 94 additions and 15 deletions
|
|
@ -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); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue