diff --git a/Events/HideAndSeekGamemode.cs b/Events/HideAndSeekGamemode.cs index 2542a74..42ca1a2 100644 --- a/Events/HideAndSeekGamemode.cs +++ b/Events/HideAndSeekGamemode.cs @@ -264,7 +264,9 @@ private async void StartInfoMessage() message.AppendLine($"{RichTextHelper.FromColorName("Snow")}Players needed to start: {RequiredPlayerCountToStart - Server.CurrentPlayerCount}"); break; } - + + if (!player.CanReceiveMessage()) continue; + player.Message(message.ToString(), 1000); } } @@ -291,6 +293,7 @@ private async void StartHideAndSeek() player.Modifications.CanDeploy = false; player.Modifications.CanSpectate = false; player.Kill(); + await Task.Delay(500); player.ChangeTeam(Team.TeamB); ClearPlayerProperties(player); } diff --git a/Events/RegionManager.cs b/Events/RegionManager.cs index d9268f6..c9b0ac6 100644 --- a/Events/RegionManager.cs +++ b/Events/RegionManager.cs @@ -121,8 +121,6 @@ private void HandlePlayerInRegion(BattleBitPlayer player, RegionHelper.Region re var spawnedInSpawn = player.GetPlayerProperty(IPlayerProperties.IGeneralPlayerProperties.SpawnedInSpawn); var spawnedInSpawnTimeStr = player.GetPlayerProperty(IPlayerProperties.IGeneralPlayerProperties.SpawnedInSpawnTime); var enteredSpawnTimeStr = player.GetPlayerProperty(IPlayerProperties.IGeneralPlayerProperties.EnteredSpawnTime); - - if (!player.CanReceiveMessage()) return; if (spawnedInSpawn == "true") {