public static void BanIP(IPAddress addr, float seconds) { RCon.bannedAddresses.RemoveAll((RCon.BannedAddresses x) => x.addr == addr); RCon.BannedAddresses bannedAddress = new RCon.BannedAddresses() { addr = addr, banTime = UnityEngine.Time.realtimeSinceStartup + seconds }; }
public static void BanIP(IPAddress addr, float seconds) { RCon.bannedAddresses.RemoveAll((Predicate <RCon.BannedAddresses>)(x => x.addr == addr)); RCon.BannedAddresses bannedAddresses = new RCon.BannedAddresses() { addr = addr, banTime = Time.get_realtimeSinceStartup() + seconds }; }