Suppress logging of un-spawnable npcs

Not anything related to the handshake fixes, but still a nice fix which could help server owners deal with mischievous client users.
This commit is contained in:
ohayo 2025-02-12 21:51:14 +10:00
parent 56c5865043
commit 98eed425e2

View file

@ -3648,10 +3648,15 @@ namespace TShockAPI
thing = GetString("{0} summoned the {1}!", args.Player.Name, npc.FullName);
break;
}
if (NPCID.Sets.MPAllowedEnemies[thingType])
{
if (TShock.Config.Settings.AnonymousBossInvasions)
TShock.Utils.SendLogs(thing, Color.PaleVioletRed, args.Player);
else
TShock.Utils.Broadcast(thing, 175, 75, 255);
}
return false;
}