mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add random demay in AutoRelog
Useful when reconnecting many accounts at once Related issues: #663, #740, #975, #1312
This commit is contained in:
parent
bea5161d6f
commit
330dda9c15
5 changed files with 47 additions and 24 deletions
|
|
@ -129,7 +129,8 @@ namespace MinecraftClient
|
|||
|
||||
//AutoRelog Settings
|
||||
public static bool AutoRelog_Enabled = false;
|
||||
public static int AutoRelog_Delay = 10;
|
||||
public static int AutoRelog_Delay_Min = 10;
|
||||
public static int AutoRelog_Delay_Max = 10;
|
||||
public static int AutoRelog_Retries = 3;
|
||||
public static bool AutoRelog_IgnoreKickMessage = false;
|
||||
public static string AutoRelog_KickMessagesFile = "kickmessages.txt";
|
||||
|
|
@ -414,10 +415,23 @@ namespace MinecraftClient
|
|||
switch (argName.ToLower())
|
||||
{
|
||||
case "enabled": AutoRelog_Enabled = str2bool(argValue); break;
|
||||
case "delay": AutoRelog_Delay = str2int(argValue); break;
|
||||
case "retries": AutoRelog_Retries = str2int(argValue); break;
|
||||
case "ignorekickmessage": AutoRelog_IgnoreKickMessage = str2bool(argValue); break;
|
||||
case "kickmessagesfile": AutoRelog_KickMessagesFile = argValue; break;
|
||||
|
||||
case "delay":
|
||||
string[] delayParts = argValue.Split('-');
|
||||
if (delayParts.Length == 1)
|
||||
{
|
||||
AutoRelog_Delay_Min = str2int(delayParts[0]);
|
||||
AutoRelog_Delay_Max = AutoRelog_Delay_Min;
|
||||
}
|
||||
else
|
||||
{
|
||||
AutoRelog_Delay_Min = str2int(delayParts[0]);
|
||||
AutoRelog_Delay_Max = str2int(delayParts[1]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue