fix/incorrect body part value

This commit is contained in:
SowinskiBraeden committed 2023-11-01 14:47:55 -07:00
1 parent 961df69cb4
commit 5d229f717a
2 files changed
+3 -3

No files matched your search

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