Skip to content

Commit

Permalink
fix: detect friends chat in 7d2d
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed May 28, 2024
1 parent 2f03902 commit 3a7006f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/lib-gameserver/src/gameservers/7d2d/emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ export class SevenDaysToDieEmitter extends TakaroEmitter {
case 'Party':
detectedChannel = ChatChannel.TEAM;
break;
case 'Friends':
detectedChannel = ChatChannel.FRIENDS;
break;
default:
break;
}
Expand Down
1 change: 1 addition & 0 deletions packages/lib-modules/src/dto/gameEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export class EventPlayerDisconnected extends BaseGameEvent<EventPlayerDisconnect
export enum ChatChannel {
GLOBAL = 'global',
TEAM = 'team',
FRIENDS = 'friends',
WHISPER = 'whisper',
}

Expand Down

0 comments on commit 3a7006f

Please sign in to comment.