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

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dayz-armbands", "name": "dayz-armbands",
"version": "5.11.3", "version": "5.11.4",
"description": "A General Purpose Discord Bot for DayZ Servers.", "description": "A General Purpose Discord Bot for DayZ Servers.",
"main": "index.js", "main": "index.js",
"nodemonConfig": { "nodemonConfig": {
+2
View File
@@ -427,6 +427,7 @@ class DayzArmbands extends Client {
let playerStatIndex = stats.indexOf(playerStat); let playerStatIndex = stats.indexOf(playerStat);
if (playerStat == undefined) playerStat = this.getDefaultPlayerStats(info.player, info.playerID); if (playerStat == undefined) playerStat = this.getDefaultPlayerStats(info.player, info.playerID);
playerStat.lastPos = playerStat.pos;
playerStat.pos = info.pos; playerStat.pos = info.pos;
this.handleAlarms(guildId, { this.handleAlarms(guildId, {
@@ -709,6 +710,7 @@ class DayzArmbands extends Client {
bestKillStreak: 0, bestKillStreak: 0,
deathStreak: 0, deathStreak: 0,
worstDeathStreak: 0, worstDeathStreak: 0,
lastPos: [],
pos: [], pos: [],
lastConnectionDate: null, lastConnectionDate: null,
lastDamageDate: null, lastDamageDate: null,