Don't send logs when player is immune is cheat detection

This commit is contained in:
Deathmax 2011-12-19 22:54:50 +08:00
parent 3e8737cf7f
commit 7e3fd905da

View file

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