Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bims-sh committed Oct 18, 2024
1 parent 578966e commit 1fc5b09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Events/HideAndSeekGamemode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand All @@ -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);
}
Expand Down
2 changes: 0 additions & 2 deletions Events/RegionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
{
Expand Down

0 comments on commit 1fc5b09

Please sign in to comment.