From cd58d79322aa018e90da735bebe465b8ead23141 Mon Sep 17 00:00:00 2001 From: Patrikkk Date: Tue, 2 Jun 2020 11:34:10 +0200 Subject: [PATCH] Kick player on attempting cavern npc type modification. --- TShockAPI/GetDataHandlers.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index f2083f90..f86104d9 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -3715,6 +3715,7 @@ namespace TShockAPI private static bool HandleSyncCavernMonsterType(GetDataHandlerArgs args) { + args.Player.Kick("Exploit attempt detected!"); TShock.Log.ConsoleDebug($"HandleSyncCavernMonsterType: Player is trying to modify NPC cavernMonsterType; this is a crafted packet! - From {args.Player.Name}"); return true; }