mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-29 20:24:24 -05:00
21 lines
769 B
JavaScript
21 lines
769 B
JavaScript
|
export default {
|
||
|
regex:
|
||
|
/^\[([0-9.:-]+)]\[([ 0-9]*)]LogNet: AddClientConnection: Added client connection: \[UNetConnection\] RemoteAddr: ([\d\.]+):[0-9]+, Name: (EOSIpNetConnection_[0-9]+), Driver: GameNetDriver (EOSNetDriver_[0-9]+), IsServer: YES, PC: NULL, Owner: NULL, UniqueId: INVALID/,
|
||
|
onMatch: (args, logParser) => {
|
||
|
const data = {
|
||
|
raw: args[ 0 ],
|
||
|
time: args[ 1 ],
|
||
|
chainID: args[ 2 ],
|
||
|
// steamID: args[ 3 ],
|
||
|
ip: args[ 3 ],
|
||
|
connection: args[ 4 ],
|
||
|
driver: args[ 5 ]
|
||
|
};
|
||
|
/* This is Called when unreal engine adds a client connection
|
||
|
First Step in Adding a Player to server
|
||
|
*/
|
||
|
logParser.eventStore[ 'last-connection' ] = data;
|
||
|
logParser.emit('ADDING_CLIENT_CONNECTION', data);
|
||
|
}
|
||
|
};
|