fix/incorrect body part value
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "12.1.5",
|
"version": "12.1.6",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
+2
-2
@@ -37,7 +37,7 @@ module.exports = {
|
|||||||
playerStat.connected = true;
|
playerStat.connected = true;
|
||||||
if (!client.exists(playerStat.connections)) playerStat.connections = 0;
|
if (!client.exists(playerStat.connections)) playerStat.connections = 0;
|
||||||
playerStat.connections++;
|
playerStat.connections++;
|
||||||
|
|
||||||
// Track adjusted sessions this instance has handled (e.g. no bot crashes or restarts).
|
// Track adjusted sessions this instance has handled (e.g. no bot crashes or restarts).
|
||||||
if (client.playerSessions.has(info.playerID)) {
|
if (client.playerSessions.has(info.playerID)) {
|
||||||
// Player is already in a session, update the session's end time.
|
// Player is already in a session, update the session's end time.
|
||||||
@@ -161,7 +161,7 @@ module.exports = {
|
|||||||
playerID: data[3],
|
playerID: data[3],
|
||||||
attacker: data[6],
|
attacker: data[6],
|
||||||
attackerID: data[7],
|
attackerID: data[7],
|
||||||
bodyPart: data[9],
|
bodyPart: data[9].split("(")[0],
|
||||||
weapon: data[12],
|
weapon: data[12],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user