mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fixed some things about pull request 99.
Changed LoginOnlyProxy to OnlyForLogin in settings, changed McTcpClient so I was not using assignment operator. (Was a mistake anyway.)
This commit is contained in:
parent
0b870e2b49
commit
a65e632522
2 changed files with 4 additions and 4 deletions
|
|
@ -111,7 +111,7 @@ namespace MinecraftClient
|
|||
|
||||
try
|
||||
{
|
||||
if (Settings.LoginOnlyProxy = true)
|
||||
if (Settings.OnlyForLogin)
|
||||
{
|
||||
client = new TcpClient(host, port);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ namespace MinecraftClient
|
|||
public static Proxy.ProxyHandler.Type proxyType = Proxy.ProxyHandler.Type.HTTP;
|
||||
public static string ProxyUsername = "";
|
||||
public static string ProxyPassword = "";
|
||||
public static bool LoginOnlyProxy = false;
|
||||
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
|
||||
|
|
@ -308,7 +308,7 @@ namespace MinecraftClient
|
|||
switch (argName.ToLower())
|
||||
{
|
||||
case "enabled": ProxyEnabled = str2bool(argValue); break;
|
||||
case "loginonlyproxy": LoginOnlyProxy = str2bool(argValue); break;
|
||||
case "onlyforlogin": OnlyForLogin = str2bool(argValue); break;
|
||||
case "type":
|
||||
argValue = argValue.ToLower();
|
||||
if (argValue == "http") { proxyType = Proxy.ProxyHandler.Type.HTTP; }
|
||||
|
|
@ -403,7 +403,7 @@ namespace MinecraftClient
|
|||
+ "server=0.0.0.0:0000\r\n"
|
||||
+ "username=\r\n"
|
||||
+ "password=\r\n"
|
||||
+ "loginonlyproxy=false # Change this to \"true\" if you only want to use a proxy for login."
|
||||
+ "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