Try post-start

This commit is contained in:
ShookEagle
2025-06-05 12:33:47 -05:00
parent d2c945bf43
commit 3406fff706

View File

@@ -38,7 +38,7 @@ public class AutoWarden(IWardenSelectionService selectionService,
TryLoadCookie();
basePlugin.RegisterListener<Listeners.OnMapStart>(OnMapStart);
basePlugin.RegisterEventHandler<EventRoundStart>(OnRoundStart);
basePlugin.RegisterEventHandler<EventRoundPoststart>(OnRoundStart);
}
public void Dispose() { }
@@ -50,7 +50,7 @@ public class AutoWarden(IWardenSelectionService selectionService,
else plugin.RemoveListener<Listeners.OnMapStart>(OnMapStart);
}
private HookResult OnRoundStart(EventRoundStart @event, GameEventInfo info) {
private HookResult OnRoundStart(EventRoundPoststart @event, GameEventInfo info) {
plugin.AddTimer(1f, () => {
foreach (var player in Utilities.GetPlayers()
.Where(p => p.Team == CsTeam.CounterTerrorist