private static void HandleEditBlockReason(GameSession session, PacketReader packet) { long buddyId = packet.ReadLong(); string otherPlayerName = packet.ReadUnicodeString(); string newBlockReason = packet.ReadUnicodeString(); Buddy buddy = GameServer.BuddyManager.GetBuddyByPlayerAndId(session.Player, buddyId); if (buddy == null || otherPlayerName != buddy.Friend.Name) { return; } buddy.Message = newBlockReason; session.Send(BuddyPacket.EditBlockReason(buddy)); }