Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Fix T's points and !ranks command, update module version
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ryuu committed Jan 29, 2024
1 parent e32ca6a commit f959725
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-- 2023.01.29 - V3.1.5

- fix: points only for T's if bomb explode (by stefanx111)
- fix: !ranks command not working

-- 2023.01.29 - V3.1.4

- feat: Added database connection config option SSLMode (by Sandy-Garrido)
Expand Down
2 changes: 1 addition & 1 deletion src/Module/Rank/RankEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void Initialize_Events(Plugin plugin)
foreach (CCSPlayerController player in players)
{
if (player is null || !player.IsValid || !player.PlayerPawn.IsValid || player.Team != CsTeam.Terrorist || player.IsBot || player.IsHLTV)
if (player is null || !player.IsValid || !player.PlayerPawn.IsValid || (CsTeam)player.TeamNum != CsTeam.Terrorist || player.IsBot || player.IsHLTV)
continue;
if (!rankCache.ContainsPlayer(player))
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/PluginManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public sealed partial class Plugin : BasePlugin

public override string ModuleAuthor => "K4ryuu";

public override string ModuleVersion => "3.1.4 " +
public override string ModuleVersion => "3.1.5 " +
#if RELEASE
"(release)";
#else
Expand Down

0 comments on commit f959725

Please sign in to comment.