From 7bac19afe0c54a40726cc2c856310a95ceb9d950 Mon Sep 17 00:00:00 2001 From: webmilio Date: Thu, 30 Jun 2016 13:46:55 -0400 Subject: [PATCH] Added world name to the title. --- TShockAPI/TShock.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index f509afdd..88e236d5 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -1102,10 +1102,10 @@ namespace TShockAPI /// empty - True/false if the server is empty; determines if we should use Utils.ActivePlayers() for player count or 0. 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 + " - " : "", empty ? 0 : Utils.ActivePlayers(), - Config.MaxSlots, Netplay.ServerIP.ToString(), Netplay.ListenPort, Version); + Config.MaxSlots, Main.worldName, Netplay.ServerIP.ToString(), Netplay.ListenPort, Version); } /// OnHardUpdate - Fired when a hardmode tile update event happens.