Update index.js

This commit is contained in:
Skillet 2023-05-09 22:03:15 -04:00 committed by GitHub
parent 09374967da
commit 4622d08dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,6 +332,7 @@ export default class SquadServer extends EventEmitter {
if (data.tse <= data.cts) return; if (data.tse <= data.cts) return;
const outdata = { const outdata = {
time: data.time,
rawID: data.characterClassname, rawID: data.characterClassname,
cheatType: 'Remote Actions', cheatType: 'Remote Actions',
player: await this.getPlayerByCondition( player: await this.getPlayerByCondition(
@ -344,6 +345,7 @@ export default class SquadServer extends EventEmitter {
this.logParser.on('EXPLODE-ATTACK', async (data) => { this.logParser.on('EXPLODE-ATTACK', async (data) => {
const outdata = { const outdata = {
time: data.time,
rawID: data.playercont, rawID: data.playercont,
cheatType: 'Explosion attack', cheatType: 'Explosion attack',
player: await this.getPlayerByController(data.playercont) player: await this.getPlayerByController(data.playercont)