Added world name to the title.
This commit is contained in:
parent
ec33752131
commit
7bac19afe0
1 changed files with 2 additions and 2 deletions
|
|
@ -1102,10 +1102,10 @@ namespace TShockAPI
|
||||||
/// <param name="empty">empty - True/false if the server is empty; determines if we should use Utils.ActivePlayers() for player count or 0.</param>
|
/// <param name="empty">empty - True/false if the server is empty; determines if we should use Utils.ActivePlayers() for player count or 0.</param>
|
||||||
private void SetConsoleTitle(bool empty)
|
private void SetConsoleTitle(bool empty)
|
||||||
{
|
{
|
||||||
Console.Title = string.Format("{0}{1}/{2} @ {3}:{4} (TShock for Terraria v{5})",
|
Console.Title = string.Format("{0}{1}/{2} on {3} @ {4}:{5} (TShock for Terraria v{6})",
|
||||||
!string.IsNullOrWhiteSpace(Config.ServerName) ? Config.ServerName + " - " : "",
|
!string.IsNullOrWhiteSpace(Config.ServerName) ? Config.ServerName + " - " : "",
|
||||||
empty ? 0 : Utils.ActivePlayers(),
|
empty ? 0 : Utils.ActivePlayers(),
|
||||||
Config.MaxSlots, Netplay.ServerIP.ToString(), Netplay.ListenPort, Version);
|
Config.MaxSlots, Main.worldName, Netplay.ServerIP.ToString(), Netplay.ListenPort, Version);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>OnHardUpdate - Fired when a hardmode tile update event happens.</summary>
|
/// <summary>OnHardUpdate - Fired when a hardmode tile update event happens.</summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue