Merge pull request #2782 from sgkoishi/bufftime

Show buff time in the log
This commit is contained in:
Lucas Nicodemus 2022-10-31 15:30:36 -07:00 committed by GitHub
commit 61b5dd1743
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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