From 65e93b7c1719989f5e46036324bcaabe4dedaf0d Mon Sep 17 00:00:00 2001 From: SGKoishi Date: Mon, 31 Oct 2022 14:33:05 -0700 Subject: [PATCH] Show buff time in the log --- TShockAPI/Bouncer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 76e63e21..edc1b2f7 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -2022,7 +2022,7 @@ namespace TShockAPI if (detectedNPCBuffTimeCheat) { - TShock.Log.ConsoleDebug(GetString("Bouncer / OnNPCAddBuff rejected abnormal buff ({0}) added to {1} ({2}) from {3}.", type, npc.TypeName, npc.netID, args.Player.Name)); + TShock.Log.ConsoleDebug(GetString("Bouncer / OnNPCAddBuff rejected abnormal buff ({0}, last for {4}) added to {1} ({2}) from {3}.", type, npc.TypeName, npc.netID, args.Player.Name, time)); args.Player.Kick(GetString($"Added buff to {npc.TypeName} NPC abnormally."), true); args.Handled = true; }