mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Default console title + add username after login
- Default console title is set if no title is provided in config file
- Fix custom console title beign replaced when adding username
- Idea is from v1RuX, see commit bf87374
This commit is contained in:
parent
3185b2df55
commit
b49850e042
1 changed files with 3 additions and 3 deletions
|
|
@ -23,6 +23,7 @@ namespace MinecraftClient
|
|||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.Title = "Minecraft Console Client";
|
||||
Console.WriteLine("Console Client for MC 1.7.2 to 1.7.4 - v" + Version + " - By ORelio & Contributors");
|
||||
|
||||
//Basic Input/Output ?
|
||||
|
|
@ -167,9 +168,6 @@ namespace MinecraftClient
|
|||
}
|
||||
}
|
||||
|
||||
//Set login as console title to identify it easier when multiple instances are running
|
||||
Console.Title = "Console Client for MC - " + Settings.Login;
|
||||
|
||||
startupargs = args;
|
||||
InitializeClient();
|
||||
}
|
||||
|
|
@ -201,6 +199,8 @@ namespace MinecraftClient
|
|||
}
|
||||
if (result == MinecraftCom.LoginResult.Success)
|
||||
{
|
||||
Console.Title += " - " + Settings.Username;
|
||||
|
||||
Console.WriteLine("Success. (session ID: " + sessionID + ')');
|
||||
if (Settings.ServerIP == "")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue