track last pos
This commit is contained in:
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dayz-armbands",
|
||||
"version": "5.11.3",
|
||||
"version": "5.11.4",
|
||||
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
||||
"main": "index.js",
|
||||
"nodemonConfig": {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user