From 7e3fd905da41a32277a3195a051a935d75fbec49 Mon Sep 17 00:00:00 2001 From: Deathmax Date: Mon, 19 Dec 2011 22:54:50 +0800 Subject: [PATCH] Don't send logs when player is immune is cheat detection --- TShockAPI/GetDataHandlers.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 6e1a2617..bf65a227 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -648,7 +648,8 @@ namespace TShockAPI if (dmg > 125) // random number, if false positives, increase { - TShock.Utils.SendLogs(string.Format("{0} sent a projectile with more than 125 damage.", args.Player.Name), Color.Red); + if (!args.Player.Group.HasPermission("ignorecheatdetection")) + TShock.Utils.SendLogs(string.Format("{0} sent a projectile with more than 125 damage.", args.Player.Name), Color.Red); if (dmg > 175) { TShock.Utils.HandleCheater(args.Player, TShock.Config.ProjectileAbuseReason);