This commit is contained in:
2026-10-14 16:53:45 +01:00
parent 16b1e11bc4
commit 373e8ba1f2
@@ -38,9 +38,6 @@ public void OnPluginStart()
g_cvCount = CreateConVar("sm_event_announce_count", "3", g_cvCount = CreateConVar("sm_event_announce_count", "3",
"Rotate announcements through the next N upcoming events, one per announcement", _, true, 1.0, true, 20.0); "Rotate announcements through the next N upcoming events, one per announcement", _, true, 1.0, true, 20.0);
// CreateConVar keeps the old bounds when the cvar already exists (plugin reload),
// so apply the lower bound explicitly.
g_cvInterval.SetBounds(ConVarBound_Lower, true, -1.0);
g_cvInterval.AddChangeHook(OnIntervalChanged); g_cvInterval.AddChangeHook(OnIntervalChanged);
AutoExecConfig(true, "EventNotifierAnnouncements"); AutoExecConfig(true, "EventNotifierAnnouncements");