mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Rewrite Scripting bot respecting the Bot API + Code Optimization
Do NOT put thread sleeps in bots. NEVER. Initialize() and Update() are called in the main thread! Also, a delay should be respected between each chat/command sendind to avoid being kicked. Putting Thread.Sleep() in bots may cause the client to be out of sync with the server or make it lose connection so again do not use them :)
This commit is contained in:
parent
52d603026e
commit
2d174f81c0
5 changed files with 86 additions and 67 deletions
4
MinecraftClient/config/testscript.txt
Normal file
4
MinecraftClient/config/testscript.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
send Hello World! I'm a bot.
|
||||
wait 60
|
||||
send Now quitting :)
|
||||
disconnect
|
||||
Loading…
Add table
Add a link
Reference in a new issue