Don't send logs when player is immune is cheat detection
This commit is contained in:
parent
3e8737cf7f
commit
7e3fd905da
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue