Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Commit

Permalink
Updated backport fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlOfDuty committed Jul 21, 2022
1 parent 7332f4e commit acf5f5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions SCPDiscordPlugin/Commands/GrantVanillaRankCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ public string[] OnCall(ICommandSender sender, string[] args)
SCPDiscord.plugin.Debug("Looking for player with SteamID/PlayerID: " + steamIDOrPlayerID);
foreach (Player pl in SCPDiscord.plugin.Server.GetPlayers())
{
SCPDiscord.plugin.Debug("Player " + pl.PlayerId + ": SteamID " + pl.UserId + " PlayerID " + pl.PlayerId);
SCPDiscord.plugin.Debug("Player " + pl.PlayerID + ": SteamID " + pl.UserID + " PlayerID " + pl.PlayerID);
if (pl.GetParsedUserID() == steamIDOrPlayerID)
{
SCPDiscord.plugin.Debug("Matching SteamID found");
matchingPlayers.Add(pl);
}
else if (pl.PlayerId.ToString() == steamIDOrPlayerID)
else if (pl.PlayerID.ToString() == steamIDOrPlayerID)
{
SCPDiscord.plugin.Debug("Matching playerID found");
matchingPlayers.Add(pl);
Expand Down
12 changes: 6 additions & 6 deletions SCPDiscordPlugin/RoleSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ public void ReceiveQueryResponse(string steamIDOrIP, List<ulong> roleIDs)
plugin.Debug("Looking for player with SteamID/IP: " + steamIDOrIP);
foreach (Player pl in plugin.Server.GetPlayers())
{
plugin.Debug("Player " + pl.PlayerId + ": SteamID " + pl.UserId + " IP " + pl.IpAddress);
if (pl.UserId == steamIDOrIP)
plugin.Debug("Player " + pl.PlayerID + ": SteamID " + pl.UserID + " IP " + pl.IPAddress);
if (pl.UserID == steamIDOrIP)
{
plugin.Debug("Matching SteamID found");
matchingPlayers.Add(pl);
}
else if (pl.IpAddress == steamIDOrIP)
else if (pl.IPAddress == steamIDOrIP)
{
plugin.Debug("Matching IP found");
matchingPlayers.Add(pl);
Expand Down Expand Up @@ -135,10 +135,10 @@ public void ReceiveQueryResponse(string steamIDOrIP, List<ulong> roleIDs)
{
Dictionary<string, string> variables = new Dictionary<string, string>
{
{ "ipaddress", player.IpAddress },
{ "ipaddress", player.IPAddress },
{ "name", player.Name },
{ "playerid", player.PlayerId.ToString() },
{ "UserId", player.UserId },
{ "playerid", player.PlayerID.ToString() },
{ "UserId", player.UserID },
{ "steamid", player.GetParsedUserID() }
};
foreach (string unparsedCommand in keyValuePair.Value)
Expand Down

0 comments on commit acf5f5f

Please sign in to comment.