Skip to content

Commit

Permalink
fix: try with this 7d2d chat regex
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Jul 14, 2024
1 parent 2384b24 commit 73bc5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib-gameserver/src/gameservers/7d2d/emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const EventRegexMap = {
/PlayerSpawnedInWorld \(reason: (JoinMultiplayer|EnterMultiplayer), position: [-\d]+, [-\d]+, [-\d]+\): EntityID=(?<entityId>[-\d]+), PltfmId='(Steam|XBL)_[\w\d]+', CrossId='EOS_[\w\d]+', OwnerID='(Steam|XBL)_\d+', PlayerName='(?<name>.+)'/,
[GameEvents.PLAYER_DISCONNECTED]: /(Player disconnected: )/,
[GameEvents.CHAT_MESSAGE]:
/Chat \(from '(?<platformId>[\w\d-]+)', entity id '(?<entityId>[-\d]+)', to '(?<channel>\w+)'\): (?<message>.+)/,
/Chat \(from '(?<platformId>[\w\d-]+)', entity id '(?<entityId>[-\d]+)', to '(?<channel>\w+)'\): ('(?<playerName>.+)':)?(?<message>.+)/,
[GameEvents.PLAYER_DEATH]:
/GMSG: Player '(?<name1>.+)' died|\[CSMM_Patrons\]playerDied: (?<name2>.+) \((?<steamOrXboxId>.+)\) died @ (?<xCoord>[-\d]+) (?<yCoord>[-\d]+) (?<zCoord>[-\d]+)/,
[GameEvents.ENTITY_KILLED]:
Expand Down

0 comments on commit 73bc5a1

Please sign in to comment.