mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Implement browser sign-in method (#1447)
* Implement browser sign-in method * Handle empty link * Improve * Handle user cancel login
This commit is contained in:
parent
424f514be2
commit
71eb1dca17
6 changed files with 124 additions and 8 deletions
|
|
@ -26,6 +26,7 @@ namespace MinecraftClient
|
|||
public static string Username = "";
|
||||
public static string Password = "";
|
||||
public static ProtocolHandler.AccountType AccountType = ProtocolHandler.AccountType.Mojang;
|
||||
public static string LoginMethod = "mcc";
|
||||
public static string ServerIP = "";
|
||||
public static ushort ServerPort = 25565;
|
||||
public static string ServerVersion = "";
|
||||
|
|
@ -277,6 +278,9 @@ namespace MinecraftClient
|
|||
case "type": AccountType = argValue == "mojang"
|
||||
? ProtocolHandler.AccountType.Mojang
|
||||
: ProtocolHandler.AccountType.Microsoft; break;
|
||||
case "method": LoginMethod = argValue.ToLower() == "browser"
|
||||
? "browser"
|
||||
: "mcc"; break;
|
||||
case "serverip": if (!SetServerIP(argValue)) serverAlias = argValue; ; break;
|
||||
case "singlecommand": SingleCommand = argValue; break;
|
||||
case "language": Language = argValue; break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue