From 422d2cfdb3ecfd27b8c89430bb2f23d9339ddd3e Mon Sep 17 00:00:00 2001 From: Deathmax Date: Sun, 5 Jun 2011 13:14:58 +0800 Subject: [PATCH] Added some extra logging when kicking for cheating/griefing. --- TShockAPI/TShock.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 9e283a61..d0cb4a8a 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -252,8 +252,8 @@ namespace TShockAPI if (maxLife > Main.player[ply].statLifeMax + 20 || life > maxLife) if (players[ply].syncHP) { - if (maxLife > Main.player[ply].statLifeMax + 20 || life > maxLife) - Tools.HandleCheater(ply); + Tools.HandleCheater(ply); + Log.Info(Tools.FindPlayer(ply) + " had increased max life by more than 20 or increased life more than max"); } else players[ply].syncHP = true; @@ -271,8 +271,8 @@ namespace TShockAPI if (maxmana > Main.player[ply].statManaMax + 20 || mana > maxmana) if (players[ply].syncMP) { - if (maxmana > Main.player[ply].statManaMax + 20 || mana > maxmana) - Tools.HandleCheater(ply); + Tools.HandleCheater(ply); + Log.Info(Tools.FindPlayer(ply) + " had increased max mana by more than 20 or increased mana more than max"); } else players[ply].syncMP = true; @@ -287,6 +287,7 @@ namespace TShockAPI if (e.Msg.whoAmI != ply) { //fuck you faggot + Log.Info(Tools.FindPlayer(e.Msg.whoAmI) + " was kicked for trying to fake chat as someone else."); Tools.HandleCheater(ply); } } @@ -345,6 +346,7 @@ namespace TShockAPI if (id != e.Msg.whoAmI) { Tools.HandleGriefer(e.Msg.whoAmI); + Log.Info(Tools.FindPlayer(e.Msg.whoAmI) + " was kicked for trying to execute KillMe on someone else."); e.Handled = true; } }