From a37e340613031e61a464b7fc9c77b02bcd361e6b Mon Sep 17 00:00:00 2001 From: ORelio Date: Wed, 18 Apr 2018 22:35:10 +0200 Subject: [PATCH] Include blacklisted IP in failed login reasons When the Mojang API responds with "Invalid username or password", this may also be caused by IP blacklisting (too many logins or using a proxy/vps) See #422 #415 #406 #394 #366 #359 #353 #279 #271 #232 ... --- MinecraftClient/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MinecraftClient/Program.cs b/MinecraftClient/Program.cs index 0706cff2..4da8f2d2 100644 --- a/MinecraftClient/Program.cs +++ b/MinecraftClient/Program.cs @@ -261,7 +261,7 @@ namespace MinecraftClient { case ProtocolHandler.LoginResult.AccountMigrated: failureMessage += "Account migrated, use e-mail as username."; break; case ProtocolHandler.LoginResult.ServiceUnavailable: failureMessage += "Login servers are unavailable. Please try again later."; break; - case ProtocolHandler.LoginResult.WrongPassword: failureMessage += "Incorrect password."; break; + case ProtocolHandler.LoginResult.WrongPassword: failureMessage += "Incorrect password, blacklisted IP or too many logins."; break; case ProtocolHandler.LoginResult.NotPremium: failureMessage += "User not premium."; break; case ProtocolHandler.LoginResult.OtherError: failureMessage += "Network error."; break; case ProtocolHandler.LoginResult.SSLError: failureMessage += "SSL Error."; break;