Skip to content

Commit

Permalink
feat(DeathLogs): ids for player/attacker
Browse files Browse the repository at this point in the history
  • Loading branch information
LumiFae committed Nov 25, 2024
1 parent 1777e7f commit 27e5a5d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions DiscordLab.DeathLogs/Handlers/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ private void OnTeamKillDeath(DyingEventArgs ev)
.Replace("{player}", ev.Player.Nickname)
.Replace("{attacker}", ev.Attacker.Nickname)
.Replace("{role}",ev.Player.Role.Name)
.Replace("{playerid}", ev.Player.UserId)
.Replace("{attackerid}", ev.Attacker.UserId)
);
}

Expand Down Expand Up @@ -69,6 +71,8 @@ private void OnCuffKillDeath(DyingEventArgs ev)
.Replace("{attacker}", ev.Attacker.Nickname)
.Replace("{playerrole}", ev.Player.Role.Name)
.Replace("{attackerrole}", ev.Attacker.Role.Name)
.Replace("{playerid}", ev.Player.UserId)
.Replace("{attackerid}", ev.Attacker.UserId)
);

}
Expand All @@ -92,6 +96,8 @@ private void OnNormalDeath(DyingEventArgs ev)
.Replace("{attacker}", ev.Attacker.Nickname)
.Replace("{playerrole}", ev.Player.Role.Name)
.Replace("{attackerrole}", ev.Attacker.Role.Name)
.Replace("{playerid}", ev.Player.UserId)
.Replace("{attackerid}", ev.Attacker.UserId)
);
}

Expand All @@ -109,6 +115,7 @@ private void OnSuicide(DyingEventArgs ev)
Plugin.Instance.Translation.PlayerDeathSelf
.Replace("{player}", ev.Player.Nickname)
.Replace("{playerrole}", ev.Player.Role.Name)
.Replace("{playerid}", ev.Player.UserId)
);
}
}
Expand Down

0 comments on commit 27e5a5d

Please sign in to comment.