hopefully stopped anti spoofing from eating a lot of connections

This commit is contained in:
jenz 2023-04-24 22:33:16 +02:00
parent 0dfc0c62e7
commit dea3d6b19b

View File

@ -70,10 +70,12 @@ public void OnPluginStart()
//----------------------------------------------------------------------------------------------------
public void OnConfigsExecuted()
{
if(!g_hCvar_BlockSpoof.BoolValue)
return;
Database.Connect(SQL_OnDatabaseConnect, "PlayerManager");
if(!g_hCvar_BlockSpoof.BoolValue)
return;
if (!g_hDatabase)
{
Database.Connect(SQL_OnDatabaseConnect, "PlayerManager");
}
}
//----------------------------------------------------------------------------------------------------