public bool UnbanSteamId(ulong steamId) { bool success = BannedPlayers.RemoveAll(ban => ban.BanType == IdentityType.SteamId && ban.SteamId == steamId) > 0; if (success) { Config.Save(); } return(success); }
public bool UnbanIp(IPAddress ip) { var uintIp = ip.ToUint32(); bool success = BannedPlayers.RemoveAll(ban => ban.BanType == IdentityType.Ip && ban.Ip == uintIp) > 0; if (success) { Config.Save(); } return(success); }