mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 19:54:25 -05:00
chore: added playerEOSID to SQUAD_CREATED event
This commit is contained in:
parent
d332dad8f6
commit
778a505ff0
@ -86,7 +86,7 @@ export default class SquadRcon extends Rcon {
|
||||
}
|
||||
|
||||
const matchSqCreated = decodedPacket.body.match(
|
||||
/(.+) \(Online IDs: EOS: ([0-9a-f]{32}) steam: (\d{17})\) has created Squad (\d+) \(Squad Name: (.+)\) on (.+)/
|
||||
/(.+) \(Online IDs: EOS: ([\da-f]{32}) steam: (\d{17})\) has created Squad (\d+) \(Squad Name: (.+)\) on (.+)/
|
||||
);
|
||||
if (matchSqCreated) {
|
||||
Logger.verbose('SquadRcon', 2, `Matched Squad Created: ${decodedPacket.body}`);
|
||||
@ -94,6 +94,7 @@ export default class SquadRcon extends Rcon {
|
||||
this.emit('SQUAD_CREATED', {
|
||||
time: new Date(),
|
||||
playerName: matchSqCreated[1],
|
||||
playerEOSID: matchSqCreated[2],
|
||||
playerSteamID: matchSqCreated[3],
|
||||
squadID: matchSqCreated[4],
|
||||
squadName: matchSqCreated[5],
|
||||
|
Loading…
Reference in New Issue
Block a user