mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-29 12:14:26 -05:00
21 lines
656 B
JavaScript
21 lines
656 B
JavaScript
export default {
|
|
regex:
|
|
/^\[([0-9.:-]+)]\[([ 0-9]*)]LogSquad: Login: NewPlayer: EOSIpNetConnection \/Engine\/Transient\.(EOSIpNetConnection_[0-9]+)/,
|
|
onMatch: (args, logParser) => {
|
|
const data = {
|
|
raw: args[0],
|
|
time: args[1],
|
|
chainID: args[2],
|
|
connection: args[3]
|
|
};
|
|
/* This is Called when a player begins the Login process
|
|
We use this to get a SteamID into playerConnected.
|
|
2nd Step in player connected path
|
|
*/
|
|
|
|
logParser.eventStore.joinRequests[data.chainID].connection = data.connection;
|
|
delete logParser.eventStore.clients[args[3]];
|
|
logParser.emit('CLIENT_LOGIN', data);
|
|
}
|
|
};
|