private static void HandleListGuild(GameSession session, PacketReader packet) { bool toggle = packet.ReadBool(); Guild guild = GameServer.GuildManager.GetGuildByLeader(session.Player); if (guild == null) { return; } guild.Searchable = toggle; session.Send(GuildPacket.ListGuildConfirm(toggle)); session.Send(GuildPacket.ListGuildUpdate(session.Player, toggle)); }