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",
|
"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": {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in new issue
Block a user