Пример #1
0
        public bool UnbanSteamId(ulong steamId)
        {
            bool success = BannedPlayers.RemoveAll(ban => ban.BanType == IdentityType.SteamId && ban.SteamId == steamId) > 0;

            if (success)
            {
                Config.Save();
            }

            return(success);
        }
Пример #2
0
        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);
        }