Broadcast and SendLog to server console as well
Removed writing of log message to console
This commit is contained in:
parent
43ecc064bd
commit
42905f2317
3 changed files with 28 additions and 49 deletions
|
|
@ -107,6 +107,7 @@ namespace TShockAPI
|
|||
public static void Broadcast(string msg, byte red, byte green, byte blue)
|
||||
{
|
||||
TSPlayer.All.SendMessage(msg, red, green, blue);
|
||||
TSPlayer.Server.SendMessage(msg, red, green, blue);
|
||||
Log.Info(string.Format("Broadcast: {0}", msg));
|
||||
|
||||
}
|
||||
|
|
@ -123,6 +124,7 @@ namespace TShockAPI
|
|||
public static void SendLogs(string log, Color color)
|
||||
{
|
||||
Log.Info(log);
|
||||
TSPlayer.Server.SendMessage(log, color);
|
||||
for (int i = 0; i < Main.maxPlayers; i++)
|
||||
{
|
||||
if (TShock.Players[i] == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue