diff --git a/PlayerManager/scripting/PlayerManager_Connect.sp b/PlayerManager/scripting/PlayerManager_Connect.sp index f9bb413c..2fd8ac84 100644 --- a/PlayerManager/scripting/PlayerManager_Connect.sp +++ b/PlayerManager/scripting/PlayerManager_Connect.sp @@ -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"); + } } //----------------------------------------------------------------------------------------------------