Added chat timestamps feature

Idea from LehmusFIN
This commit is contained in:
ORelio 2014-04-09 18:52:17 +02:00
parent 26def01dae
commit cd2fe152e6
2 changed files with 8 additions and 0 deletions

View file

@ -302,6 +302,11 @@ namespace MinecraftClient
{
if (!String.IsNullOrEmpty(str))
{
if (Settings.chatTimeStamps)
{
int hour = DateTime.Now.Hour, minute = DateTime.Now.Minute, second = DateTime.Now.Second;
ConsoleIO.Write(hour.ToString("00") + ':' + minute.ToString("00") + ':' + second.ToString("00") + ' ');
}
if (!acceptnewlines) { str = str.Replace('\n', ' '); }
if (ConsoleIO.basicIO) { ConsoleIO.WriteLine(str); return; }
string[] subs = str.Split(new char[] { '§' });