Log spew!

This commit is contained in:
Lucas Nicodemus 2011-07-30 17:01:43 -06:00
parent 1e2fa5cc74
commit e990732da3
2 changed files with 3 additions and 1 deletions

View file

@ -102,6 +102,8 @@ namespace TShockAPI
public string DefaultRegistrationGroupName = "default";
public bool DisableSpewLogs = true;
/// <summary>
/// Valid types are "sha512", "sha256", "md5"
/// </summary>

View file

@ -145,7 +145,7 @@ namespace TShockAPI
TSPlayer.Server.SendMessage(log, color);
foreach (TSPlayer player in TShock.Players)
{
if (player != null && player.Active && player.Group.HasPermission("logs") && player.DisplayLogs)
if (player != null && player.Active && player.Group.HasPermission("logs") && player.DisplayLogs && TShock.Config.DisableSpewLogs == false)
player.SendMessage(log, color);
}
}