track last pos

This commit is contained in:
SowinskiBraeden committed 2023-03-31 20:01:33 -07:00
1 parent 5f6a864e39
commit 0bbddc991d
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -427,6 +427,7 @@ class DayzArmbands extends Client {
let playerStatIndex = stats.indexOf(playerStat);
if (playerStat == undefined) playerStat = this.getDefaultPlayerStats(info.player, info.playerID);
playerStat.lastPos = playerStat.pos;
playerStat.pos = info.pos;
this.handleAlarms(guildId, {
@@ -709,6 +710,7 @@ class DayzArmbands extends Client {
bestKillStreak: 0,
deathStreak: 0,
worstDeathStreak: 0,
lastPos: [],
pos: [],
lastConnectionDate: null,
lastDamageDate: null,