mirror of
https://github.com/edgegamers/Jailbreak.git
synced 2025-12-06 04:42:57 -08:00
Try post-start
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user