Auto-Tpaccept from everyone

Disabled by default.
Suggested by medxo
This commit is contained in:
ORelio 2015-01-02 22:10:12 +01:00
parent 1499f8cbfc
commit dd001e3519
3 changed files with 9 additions and 3 deletions

View file

@ -86,6 +86,7 @@ namespace MinecraftClient
//Remote Control
public static bool RemoteCtrl_Enabled = false;
public static bool RemoteCtrl_AutoTpaccept = true;
public static bool RemoteCtrl_AutoTpaccept_Everyone = false;
//Custom app variables and Minecraft accounts
private static Dictionary<string, string> AppVars = new Dictionary<string, string>();
@ -271,6 +272,7 @@ namespace MinecraftClient
{
case "enabled": RemoteCtrl_Enabled = str2bool(argValue); break;
case "autotpaccept": RemoteCtrl_AutoTpaccept = str2bool(argValue); break;
case "tpaccepteveryone": RemoteCtrl_AutoTpaccept_Everyone = str2bool(argValue); break;
}
break;
@ -399,7 +401,8 @@ namespace MinecraftClient
+ "\r\n"
+ "[RemoteControl]\r\n"
+ "enabled=false\r\n"
+ "autotpaccept=true\r\n", Encoding.UTF8);
+ "autotpaccept=true\r\n"
+ "tpaccepteveryone=false\r\n", Encoding.UTF8);
}
public static int str2int(string str) { try { return Convert.ToInt32(str); } catch { return 0; } }