public void SCRem(CSClient session, SCRem message) { foreach (var c in Program.server.Clients) { foreach (var p in message.List) { c.Player.Character.Friends.DisconnectFriend(p.btName.MakeString()); } } }
public void RemClient(SCRem message) { if (!_serverClientList.ContainsKey(message.Server)) { return; } var name = message.List.First().btName.MakeString(); var client = _serverClientList[message.Server].First(x => x.btName.MakeString() == name); ServerManager.Instance.BroadCast(message); _serverClientList[message.Server].Remove(client); }
public void SCRem(CSClient session, SCRem message) { foreach (var c in Program.server.Clients.Where(x => x.Player != null && x.Player.Status == MU.Resources.LoginStatus.Playing)) { foreach (var p in message.List) { var name = p.btName.MakeString(); c.Player.Character?.Friends.DisconnectFriend(name); var m = c.Player.Character.Guild?.Find(name) ?? null; if (m != null && message.Server != Program.ServerCode) { m.Server = 0xff; } } } }
public void SCRem(CSSession session, SCRem message) { Program.Clients.RemClient(message); }