private static void HandleLeave(GameSession session, PacketReader packet) { int groupChatId = packet.ReadInt(); GroupChat groupChat = GameServer.GroupChatManager.GetGroupChatById(groupChatId); if (groupChat is null) { return; } groupChat.RemoveMember(session.Player); session.Send(GroupChatPacket.Leave(groupChat)); groupChat.BroadcastPacketGroupChat(GroupChatPacket.LeaveNotice(groupChat, session.Player)); }