Warn THEN kick.

This commit is contained in:
Deathmax 2011-12-18 09:31:36 +08:00
parent 542fe11c1a
commit beae9a55a2

View file

@ -630,10 +630,14 @@ namespace TShockAPI
return true; return true;
} }
if (dmg > 100) // random number, if false positives, increase if (dmg > 80) // random number, if false positives, increase
{ {
TShock.Utils.HandleCheater(args.Player, TShock.Config.ProjectileAbuseReason); TShock.Utils.SendLogs(string.Format("{0} sent a projectile with more than 80 damage.", args.Player.Name), Color.Red);
return true; if (dmg > 150)
{
TShock.Utils.HandleCheater(args.Player, TShock.Config.ProjectileAbuseReason);
return true;
}
} }
if (type == 23) if (type == 23)