From c73bd08709c5dc01e3806ae1a0bf41df685cd788 Mon Sep 17 00:00:00 2001 From: Shank Date: Sun, 5 Jun 2011 23:16:57 -0600 Subject: [PATCH] Mana increase check now respects Kick/Ban cheater --- TShockAPI/TShock.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 2f3a700e..8b72f123 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -304,7 +304,13 @@ namespace TShockAPI { if (players[ply].syncMP) { - TShock.Ban(ply, "Cheater"); + if (ConfigurationManager.banCheater) + { + TShock.Ban(ply, "Abnormal mana increase"); + Tools.Broadcast(Tools.FindPlayer(ply) + " was banned because they gained an abnormal amount of mana."); + } + else if (ConfigurationManager.kickCheater) + Tools.Kick(ply, "Abnormal mana increase"); Log.Info(Tools.FindPlayer(ply) + " had increased max mana by more than 20 or increased mana more than max"); }