maybe needed check

This commit is contained in:
jenz 2023-04-24 23:26:06 +02:00
parent 6b3d5a615b
commit 9be3bbaa76

View File

@ -78,7 +78,10 @@ public Action time_query_activity(Handle timer, any data)
public void OnPluginStart()
{
Database.Connect(SQL_OnDatabaseConnect, "unloze_playtimestats");
if (!g_hDatabase)
{
Database.Connect(SQL_OnDatabaseConnect, "unloze_playtimestats");
}
RegConsoleCmd("sm_playtime", Command_Time, "retreives total connection time on all connected servers");
RegConsoleCmd("sm_topplaytime", Command_TopTime, "retreives top 12 playtime highscores on all connected servers");