mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Ok now I'm done :)
This commit is contained in:
parent
7e70494f23
commit
eda271023a
2 changed files with 8 additions and 5 deletions
|
|
@ -868,8 +868,9 @@ namespace MinecraftClient
|
||||||
System.Threading.Thread.Sleep(100);
|
System.Threading.Thread.Sleep(100);
|
||||||
|
|
||||||
string this_line = lines[i].Trim(); // Removes all whitespaces at start and end of current line
|
string this_line = lines[i].Trim(); // Removes all whitespaces at start and end of current line
|
||||||
|
|
||||||
if (this_line.Length == 0) {
|
if (this_line.Length == 0)
|
||||||
|
{
|
||||||
// Skip a completely empty line
|
// Skip a completely empty line
|
||||||
}
|
}
|
||||||
else if (this_line.Trim().StartsWith("//"))
|
else if (this_line.Trim().StartsWith("//"))
|
||||||
|
|
@ -893,9 +894,10 @@ namespace MinecraftClient
|
||||||
System.Threading.Thread.Sleep(Convert.ToInt32(lines[i].Substring(5, lines[i].Length - 5)) * 100);
|
System.Threading.Thread.Sleep(Convert.ToInt32(lines[i].Substring(5, lines[i].Length - 5)) * 100);
|
||||||
// Do a wait (given in milliseconds)
|
// Do a wait (given in milliseconds)
|
||||||
}
|
}
|
||||||
else if (this_line.StartsWith("exit")) {
|
else if (this_line.StartsWith("exit"))
|
||||||
//Program.Client.Disconnect();
|
{
|
||||||
} // Optional exit only if called in bot text file,
|
Program.B_Client.Disconnect();
|
||||||
|
} // Optional exit only if called in bot text file,
|
||||||
}
|
}
|
||||||
UnloadBot(); // Otherwise continue operation of Client to normal (non-bot) usage
|
UnloadBot(); // Otherwise continue operation of Client to normal (non-bot) usage
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ namespace MinecraftClient
|
||||||
public static string scripting_param;
|
public static string scripting_param;
|
||||||
// End Scripting Bot Parameters
|
// End Scripting Bot Parameters
|
||||||
private static McTcpClient Client;
|
private static McTcpClient Client;
|
||||||
|
public static McTcpClient B_Client;
|
||||||
private static string loginusername = "";
|
private static string loginusername = "";
|
||||||
private static string user = "";
|
private static string user = "";
|
||||||
private static string pass = "";
|
private static string pass = "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue