Log spew!
This commit is contained in:
parent
1e2fa5cc74
commit
e990732da3
2 changed files with 3 additions and 1 deletions
|
|
@ -102,6 +102,8 @@ namespace TShockAPI
|
||||||
|
|
||||||
public string DefaultRegistrationGroupName = "default";
|
public string DefaultRegistrationGroupName = "default";
|
||||||
|
|
||||||
|
public bool DisableSpewLogs = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Valid types are "sha512", "sha256", "md5"
|
/// Valid types are "sha512", "sha256", "md5"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ namespace TShockAPI
|
||||||
TSPlayer.Server.SendMessage(log, color);
|
TSPlayer.Server.SendMessage(log, color);
|
||||||
foreach (TSPlayer player in TShock.Players)
|
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);
|
player.SendMessage(log, color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue