Skip to content

Commit

Permalink
Fix rank command
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Jul 14, 2024
1 parent 021ba8e commit 28e07ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/[LR] Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ public void HandleRankCommand(CCSPlayerController? player, CommandInfo commandIn
return;
}

var searchTerm = commandInfo.ArgCount < 2 ? player.AuthorizedSteamID?.SteamId2 ?? player.SteamID.ToString(): commandInfo.GetArg(1);
var searchTerm = commandInfo.ArgCount < 2 ? player.SteamID.ToString(): commandInfo.GetArg(1);
var isSteamId = searchTerm.All(char.IsDigit);
if (isSteamId && ulong.TryParse(searchTerm, out var steam))
{
Expand Down

0 comments on commit 28e07ff

Please sign in to comment.