mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 09:34:23 -05:00
fix: workaround for the outdated player list data requested when a new squad is created, causing missing of the squad id parameter
This commit is contained in:
parent
eaa98bb281
commit
de2878d7aa
@ -157,6 +157,8 @@ export default class SquadServer extends EventEmitter {
|
||||
|
||||
this.rcon.on('SQUAD_CREATED', async (data) => {
|
||||
data.player = await this.getPlayerBySteamID(data.playerSteamID, true);
|
||||
data.player.squadID = data.squadID;
|
||||
|
||||
delete data.playerName;
|
||||
delete data.playerSteamID;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user