Esempio n. 1
0
 private void DoTick()
 {
     if (Global.get_SteamServer() != null)
     {
         Interface.CallHook("OnTick");
         ((BaseSteamworks)Global.get_SteamServer()).Update();
     }
     RCon.Update();
     for (int index = 0; index < ((List <Network.Connection>)((Network.Server)Network.Net.sv).connections).Count; ++index)
     {
         Network.Connection connection = ((List <Network.Connection>)((Network.Server)Network.Net.sv).connections)[index];
         if (!connection.get_isAuthenticated() && (double)connection.GetSecondsConnected() >= (double)ConVar.Server.authtimeout)
         {
             ((Network.Server)Network.Net.sv).Kick(connection, "Authentication Timed Out");
         }
     }
 }
Esempio n. 2
0
 private void DoTick()
 {
     if (SteamServer.IsValid)
     {
         Interface.CallHook("OnTick");
         SteamServer.RunCallbacks();
     }
     RCon.Update();
     for (int i = 0; i < Network.Net.sv.connections.Count; i++)
     {
         Network.Connection item = Network.Net.sv.connections[i];
         if (!item.isAuthenticated && item.GetSecondsConnected() >= (float)ConVar.Server.authtimeout)
         {
             Network.Net.sv.Kick(item, "Authentication Timed Out");
         }
     }
 }