Broadcast and SendLog to server console as well

Removed writing of log message to console
This commit is contained in:
ricky 2011-06-15 15:49:50 +10:00
parent 43ecc064bd
commit 42905f2317
3 changed files with 28 additions and 49 deletions

View file

@ -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)