private static void HandleLeave(GameSession session) { Guild guild = GameServer.GuildManager.GetGuildById(session.Player.Guild.Id); if (guild == null) { return; } session.Send(GuildPacket.LeaveConfirm()); session.FieldManager.BroadcastPacket(GuildPacket.UpdateGuildTag(session.Player)); guild.BroadcastPacketGuild(GuildPacket.MemberLeaveNotice(session.Player)); guild.RemoveMember(session.Player); }