Kick player on attempting cavern npc type modification.

This commit is contained in:
Patrikkk 2020-06-02 11:34:10 +02:00
parent ce5ee0d623
commit cd58d79322

View file

@ -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;
}