mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Removed 'Too many failed logins' error message
Display the HTTP error code instead.
This commit is contained in:
parent
62731fc0b9
commit
9be1d99ca0
2 changed files with 8 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ namespace MinecraftClient
|
|||
{
|
||||
#region Login to Minecraft.net and get a new session ID
|
||||
|
||||
public enum LoginResult { OtherError, ServiceUnavailable, SSLError, Success, WrongPassword, Blocked, AccountMigrated, NotPremium };
|
||||
public enum LoginResult { OtherError, ServiceUnavailable, SSLError, Success, WrongPassword, AccountMigrated, NotPremium };
|
||||
|
||||
/// <summary>
|
||||
/// Allows to login to a premium Minecraft account using the Yggdrasil authentication scheme.
|
||||
|
|
@ -70,7 +70,13 @@ namespace MinecraftClient
|
|||
{
|
||||
return LoginResult.ServiceUnavailable;
|
||||
}
|
||||
else return LoginResult.Blocked;
|
||||
else
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.DarkGray;
|
||||
ConsoleIO.WriteLine("Got error code from server: " + (int)response.StatusCode);
|
||||
Console.ForegroundColor = ConsoleColor.Gray;
|
||||
return LoginResult.OtherError;
|
||||
}
|
||||
}
|
||||
else if (e.Status == WebExceptionStatus.SendFailure)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -196,7 +196,6 @@ namespace MinecraftClient
|
|||
switch (result)
|
||||
{
|
||||
case MinecraftCom.LoginResult.AccountMigrated: Console.WriteLine("Account migrated, use e-mail as username."); break;
|
||||
case MinecraftCom.LoginResult.Blocked: Console.WriteLine("Too many failed logins. Please try again later."); break;
|
||||
case MinecraftCom.LoginResult.ServiceUnavailable: Console.WriteLine("Login servers are unavailable. Please try again later."); break;
|
||||
case MinecraftCom.LoginResult.WrongPassword: Console.WriteLine("Incorrect password."); break;
|
||||
case MinecraftCom.LoginResult.NotPremium: Console.WriteLine("User not premium."); break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue