maybe needed check

This commit is contained in:
jenz 2023-04-24 23:15:04 +02:00
parent 7a53fd7faf
commit c585d124fc

View File

@ -19,7 +19,10 @@ public Plugin myinfo =
public void OnPluginStart() public void OnPluginStart()
{ {
Database.Connect(SQL_OnDatabaseConnect, "Event_notifier"); if (!g_hDatabase)
{
Database.Connect(SQL_OnDatabaseConnect, "Event_notifier");
}
RegConsoleCmd("sm_event", Command_Event_notifier, "Display infos about the next event"); RegConsoleCmd("sm_event", Command_Event_notifier, "Display infos about the next event");
RegConsoleCmd("sm_events", Command_Event_notifier, "Display infos about the next event"); RegConsoleCmd("sm_events", Command_Event_notifier, "Display infos about the next event");
} }