Skip to content

Commit

Permalink
Update minimum version to 147
Browse files Browse the repository at this point in the history
  • Loading branch information
B3none committed Jan 20, 2024
1 parent 086370f commit da07ae7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions InstadefusePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace InstadefusePlugin;

[MinimumApiVersion(129)]
[MinimumApiVersion(147)]
public class InstadefusePlugin : BasePlugin
{
private const string Version = "1.3.2";
Expand Down Expand Up @@ -243,7 +243,7 @@ private void AttemptInstadefuse(CCSPlayerController player)

if (!bombCanBeDefusedInTime)
{
var outputText = $"{player.PlayerName} was {ChatColors.Darkred}{Math.Abs(timeLeftAfterDefuse):n3} seconds{ChatColors.White} away from defusing.";
var outputText = $"{player.PlayerName} was {ChatColors.DarkRed}{Math.Abs(timeLeftAfterDefuse):n3} seconds{ChatColors.White} away from defusing.";
Console.WriteLine($"{LogPrefix}{outputText}");
Server.PrintToChatAll($"{MessagePrefix}{outputText}");

Expand Down Expand Up @@ -271,7 +271,7 @@ private static bool TeamHasAlivePlayers(CsTeam team)

if (players.Any())
{
return players.Any(player => player.IsValid && player.TeamNum == (byte)team && player.PawnIsAlive);
return players.Any(player => player.IsValid && player.Team == team && player.PawnIsAlive);
}

Console.WriteLine($"{LogPrefix}No players found!");
Expand Down
2 changes: 1 addition & 1 deletion InstadefusePlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.142" />
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.147" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
</ItemGroup>

Expand Down

0 comments on commit da07ae7

Please sign in to comment.