From 269ee1652d4e0d582d6cbcc92c5f40cf2dcba593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BE=BD=E5=AD=A6?= <1242509682@qq.com> Date: Mon, 20 May 2024 05:08:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8F=B0=E6=97=B6=E4=B8=8D=E6=8D=A2=E8=A1=8C?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B9=B6=E5=9C=A8=E7=8E=A9=E5=AE=B6?= =?UTF-8?q?=E5=8F=91=E8=A8=80=E6=97=B6=E5=8F=AF=E5=9C=A8=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=8F=B0=E8=8E=B7=E5=8F=96=E5=BD=93=E5=89=8D=E7=8E=A9=E5=AE=B6?= =?UTF-8?q?=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RainbowChat/RainbowChat.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RainbowChat/RainbowChat.cs b/RainbowChat/RainbowChat.cs index 677db00ae..702c8d320 100644 --- a/RainbowChat/RainbowChat.cs +++ b/RainbowChat/RainbowChat.cs @@ -133,7 +133,7 @@ private void OnChat(ServerChatEventArgs e) TSPlayer.All.SendMessage(string.Format(TShock.Config.Settings.ChatFormat, player.Group.Name, player.Group.Prefix, player.Name, player.Group.Suffix, coloredMessage), player.Group.R, player.Group.G, player.Group.B); // 在控制台打印原始消息 - Console.WriteLine($"[{player.Group.Name}]{player.Name}:{e.Text}"); + Console.Write(string.Format($"〖{player.Group.Name}〗[{e.Who}] {player.Name}:{e.Text}\n")); } else if (_Gradient[player.Index]) { @@ -143,7 +143,7 @@ private void OnChat(ServerChatEventArgs e) TSPlayer.All.SendMessage(string.Format(TShock.Config.Settings.ChatFormat, player.Group.Name, player.Group.Prefix, player.Name, player.Group.Suffix, gradientMessage), player.Group.R, player.Group.G, player.Group.B); // 在控制台打印原始消息 - Console.WriteLine($"[{player.Group.Name}]{player.Name}:{e.Text}"); + Console.Write(string.Format($"〖{player.Group.Name}〗[{e.Who}] {player.Name}:{e.Text}\n")); } // 标记事件已处理