mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add a setting for disabling auto tpaccept
For RemoteControl bot. Suggestion by TorchRJ_
This commit is contained in:
parent
1847370cef
commit
dbefe16831
2 changed files with 5 additions and 2 deletions
|
|
@ -85,6 +85,7 @@ namespace MinecraftClient
|
|||
|
||||
//Remote Control
|
||||
public static bool RemoteCtrl_Enabled = false;
|
||||
public static bool RemoteCtrl_AutoTpaccept = true;
|
||||
|
||||
//Custom app variables and Minecraft accounts
|
||||
private static Dictionary<string, string> AppVars = new Dictionary<string, string>();
|
||||
|
|
@ -269,6 +270,7 @@ namespace MinecraftClient
|
|||
switch (argName.ToLower())
|
||||
{
|
||||
case "enabled": RemoteCtrl_Enabled = str2bool(argValue); break;
|
||||
case "autotpaccept": RemoteCtrl_AutoTpaccept = str2bool(argValue); break;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
@ -396,7 +398,8 @@ namespace MinecraftClient
|
|||
+ "tasksfile=tasks.ini\r\n"
|
||||
+ "\r\n"
|
||||
+ "[RemoteControl]\r\n"
|
||||
+ "enabled=false\r\n", Encoding.UTF8);
|
||||
+ "enabled=false\r\n"
|
||||
+ "autotpaccept=true\r\n", Encoding.UTF8);
|
||||
}
|
||||
|
||||
public static int str2int(string str) { try { return Convert.ToInt32(str); } catch { return 0; } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue