Skip to content

Commit

Permalink
Added timer for PrintToCenterHtml announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
B3none committed Jan 11, 2024
1 parent 4b7b933 commit e117b77
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion RetakesPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,15 @@ private void AnnounceBombsite(Bombsite bombsite)

if (!isRetakesConfigLoaded || _retakesConfig!.RetakesConfigData!.EnableBombsiteAnnouncementCenter)
{
player.PrintToCenterHtml(announcementMessage);
AddTimer(1.0f, () =>
{
if (!Helpers.IsValidPlayer(player))
{
return;
}

player.PrintToCenterHtml(announcementMessage);
});
}
}

Expand Down

0 comments on commit e117b77

Please sign in to comment.