feat(Commands): add player death statistics commands
This commit is contained in:
parent
f955dd62ce
commit
5466f3ea6f
5 changed files with 137 additions and 9 deletions
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue