From e69a3509cd3ddcf4fd725839ca23aa5ad45466e2 Mon Sep 17 00:00:00 2001 From: jenz Date: Mon, 24 Apr 2023 23:26:06 +0200 Subject: [PATCH] maybe needed check --- discord_verificiation/scripting/unloze_player_time.sp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord_verificiation/scripting/unloze_player_time.sp b/discord_verificiation/scripting/unloze_player_time.sp index 71ca479c..9f3a1664 100644 --- a/discord_verificiation/scripting/unloze_player_time.sp +++ b/discord_verificiation/scripting/unloze_player_time.sp @@ -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");