Esempio n. 1
0
 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
     };
 }
Esempio n. 2
0
 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
     };
 }