mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +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
|
try
|
||||||
{
|
{
|
||||||
if (Settings.LoginOnlyProxy = true)
|
if (Settings.OnlyForLogin)
|
||||||
{
|
{
|
||||||
client = new TcpClient(host, port);
|
client = new TcpClient(host, port);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ namespace MinecraftClient
|
||||||
public static Proxy.ProxyHandler.Type proxyType = Proxy.ProxyHandler.Type.HTTP;
|
public static Proxy.ProxyHandler.Type proxyType = Proxy.ProxyHandler.Type.HTTP;
|
||||||
public static string ProxyUsername = "";
|
public static string ProxyUsername = "";
|
||||||
public static string ProxyPassword = "";
|
public static string ProxyPassword = "";
|
||||||
public static bool LoginOnlyProxy = false;
|
public static bool OnlyForLogin = false;
|
||||||
|
|
||||||
//Other Settings
|
//Other Settings
|
||||||
public static string TranslationsFile_FromMCDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\.minecraft\assets\objects\9e\9e2fdc43fc1c7024ff5922b998fadb2971a64ee0"; //MC 1.7.4 en_GB.lang
|
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())
|
switch (argName.ToLower())
|
||||||
{
|
{
|
||||||
case "enabled": ProxyEnabled = str2bool(argValue); break;
|
case "enabled": ProxyEnabled = str2bool(argValue); break;
|
||||||
case "loginonlyproxy": LoginOnlyProxy = str2bool(argValue); break;
|
case "onlyforlogin": OnlyForLogin = str2bool(argValue); break;
|
||||||
case "type":
|
case "type":
|
||||||
argValue = argValue.ToLower();
|
argValue = argValue.ToLower();
|
||||||
if (argValue == "http") { proxyType = Proxy.ProxyHandler.Type.HTTP; }
|
if (argValue == "http") { proxyType = Proxy.ProxyHandler.Type.HTTP; }
|
||||||
|
|
@ -403,7 +403,7 @@ namespace MinecraftClient
|
||||||
+ "server=0.0.0.0:0000\r\n"
|
+ "server=0.0.0.0:0000\r\n"
|
||||||
+ "username=\r\n"
|
+ "username=\r\n"
|
||||||
+ "password=\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"
|
+ "\r\n"
|
||||||
+ "#Bot Settings\r\n"
|
+ "#Bot Settings\r\n"
|
||||||
+ "\r\n"
|
+ "\r\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue