feat(Commands): add player death statistics commands

This commit is contained in:
Cai 2025-07-12 19:05:19 +08:00
parent f955dd62ce
commit 5466f3ea6f
5 changed files with 137 additions and 9 deletions

View file

@ -4325,6 +4325,15 @@ namespace TShockAPI
args.Player.Dead = true;
args.Player.RespawnTimer = TShock.Config.Settings.RespawnSeconds;
if (Main.ServerSideCharacter && !args.Player.HasPermission(Permissions.bypassssc))
{
if (pvp)
{
args.Player.sscDeathsPVP++;
}
args.Player.sscDeathsPVE++;
}
foreach (NPC npc in Main.npc)
{
if (npc.active && (npc.boss || npc.type == 13 || npc.type == 14 || npc.type == 15) &&