kick Added buff msg add Type

This commit is contained in:
xuyuwtu 2026-01-28 22:08:52 +08:00
parent 54025a9b93
commit f81debe879

View file

@ -2126,7 +2126,7 @@ namespace TShockAPI
if (detectedNPCBuffTimeCheat) if (detectedNPCBuffTimeCheat)
{ {
TShock.Log.ConsoleDebug(GetString("Bouncer / OnNPCAddBuff rejected abnormal buff ({0}, last for {4}) added to {1} ({2}) from {3}.", type, npc.TypeName, npc.type, args.Player.Name, time)); TShock.Log.ConsoleDebug(GetString("Bouncer / OnNPCAddBuff rejected abnormal buff ({0}, last for {4}) added to {1} ({2}) from {3}.", type, npc.TypeName, npc.type, args.Player.Name, time));
args.Player.Kick(GetString($"Added buff to {npc.TypeName} NPC abnormally."), true); args.Player.Kick($"Added buff {type} to {npc.TypeName} NPC abnormally.", true);
args.Handled = true; args.Handled = true;
} }
} }