Skip to content

Commit

Permalink
Typo Fix kit => role
Browse files Browse the repository at this point in the history
  • Loading branch information
ect0s committed Feb 11, 2022
1 parent 1f14a86 commit 7e40b31
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions squad-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,10 @@ export default class SquadServer extends EventEmitter {
});

this.logParser.on('SQUAD_CREATED', async (data) => {

data.player = await this.getPlayerBySteamID(data.playerSteamID, true)
delete data.playerName
delete data.playerSteamID
delete data.squadID
data.player = await this.getPlayerBySteamID(data.playerSteamID, true);
delete data.playerName;
delete data.playerSteamID;
delete data.squadID;

this.emit('SQUAD_CREATED', data);
});
Expand Down Expand Up @@ -373,7 +372,7 @@ export default class SquadServer extends EventEmitter {
this.emit('PLAYER_SQUADLEADER_GAINED', {
player: player
});
if (player.kit !== oldPlayerInfo[player.steamID].kit)
if (player.role !== oldPlayerInfo[player.steamID].role)
this.emit('PLAYER_ROLE_CHANGED', {
player: player,
oldRole: oldPlayerInfo[player.steamID].role,
Expand Down

0 comments on commit 7e40b31

Please sign in to comment.