mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Merge pull request #99 from ZizzyDizzyMC/Indev
Ability to use proxy only for minecraft login
This commit is contained in:
commit
a5bf62bc94
2 changed files with 11 additions and 2 deletions
|
|
@ -35,6 +35,7 @@ namespace MinecraftClient
|
|||
public static Proxy.ProxyHandler.Type proxyType = Proxy.ProxyHandler.Type.HTTP;
|
||||
public static string ProxyUsername = "";
|
||||
public static string ProxyPassword = "";
|
||||
public static bool OnlyForLogin = false;
|
||||
|
||||
//Other Settings
|
||||
public static string TranslationsFile_FromMCDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\.minecraft\assets\objects\9e\9e2fdc43fc1c7024ff5922b998fadb2971a64ee0"; //MC 1.7.4 en_GB.lang
|
||||
|
|
@ -305,7 +306,6 @@ namespace MinecraftClient
|
|||
case "enabled": RemoteCtrl_Enabled = str2bool(argValue); break;
|
||||
case "autotpaccept": RemoteCtrl_AutoTpaccept = str2bool(argValue); break;
|
||||
case "tpaccepteveryone": RemoteCtrl_AutoTpaccept_Everyone = str2bool(argValue); break;
|
||||
case "herochatmessagesenabled": Hero_Chat_Messages_Enabled = str2bool(argValue); break;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
@ -323,6 +323,7 @@ namespace MinecraftClient
|
|||
switch (argName.ToLower())
|
||||
{
|
||||
case "enabled": ProxyEnabled = str2bool(argValue); break;
|
||||
case "onlyforlogin": OnlyForLogin = str2bool(argValue); break;
|
||||
case "type":
|
||||
argValue = argValue.ToLower();
|
||||
if (argValue == "http") { proxyType = Proxy.ProxyHandler.Type.HTTP; }
|
||||
|
|
@ -419,6 +420,7 @@ namespace MinecraftClient
|
|||
+ "server=0.0.0.0:0000\r\n"
|
||||
+ "username=\r\n"
|
||||
+ "password=\r\n"
|
||||
+ "onlyforlogin=false # Change this to \"true\" if you only want to use a proxy for login."
|
||||
+ "\r\n"
|
||||
+ "#Bot Settings\r\n"
|
||||
+ "\r\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue