mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Add AutoDig ChatBot
This commit is contained in:
parent
4cb95731bf
commit
c57ac183d5
16 changed files with 579 additions and 64 deletions
|
|
@ -38,9 +38,6 @@ namespace MinecraftClient.ChatBots
|
|||
[TomlInlineComment("$config.ChatBot.AntiAfk.Walk_Retries$")]
|
||||
public int Walk_Retries = 20;
|
||||
|
||||
[NonSerialized]
|
||||
public int _DelayMin, _DelayMax;
|
||||
|
||||
public void OnSettingUpdate()
|
||||
{
|
||||
if (Walk_Range <= 0)
|
||||
|
|
@ -61,9 +58,6 @@ namespace MinecraftClient.ChatBots
|
|||
LogToConsole(BotName, Translations.TryGet("bot.antiafk.swapping"));
|
||||
}
|
||||
|
||||
_DelayMin = (int)Math.Round(Delay.min * 10);
|
||||
_DelayMax = (int)Math.Round(Delay.max * 10);
|
||||
|
||||
Command ??= string.Empty;
|
||||
}
|
||||
|
||||
|
|
@ -115,7 +109,7 @@ namespace MinecraftClient.ChatBots
|
|||
{
|
||||
DoAntiAfkStuff();
|
||||
count = 0;
|
||||
nextrun = random.Next(Config._DelayMin, Config._DelayMax);
|
||||
nextrun = random.Next(Settings.DoubleToTick(Config.Delay.min), Settings.DoubleToTick(Config.Delay.max));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue