mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 11:54:23 -05:00
Update index.js
This commit is contained in:
parent
17deebf4a5
commit
aa9efec073
@ -268,6 +268,7 @@ export default class SquadServer extends EventEmitter {
|
||||
});
|
||||
|
||||
this.logParser.on('PLAYER_DIED', async (data) => {
|
||||
console.log(data);
|
||||
data.victim = await this.getPlayerByName(data.victimName);
|
||||
|
||||
if (data.victim && data.attacker)
|
||||
@ -277,7 +278,9 @@ export default class SquadServer extends EventEmitter {
|
||||
|
||||
delete data.victimName;
|
||||
delete data.attackerName;
|
||||
|
||||
|
||||
console.log(data);
|
||||
|
||||
this.emit('PLAYER_DIED', data);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user