Skip to content

Commit

Permalink
Fix Update of other clients
Browse files Browse the repository at this point in the history
  • Loading branch information
TheR00st3r committed Jan 7, 2025
1 parent aa161ed commit 001af69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions PugSharp.Match/Match.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,7 @@ public void TogglePlayerIsReady(IPlayer player)
player.Clan = _TextHelper.GetText(nameof(Resources.PugSharp_Match_NotReadyTag));
_CsServer.PrintToChatAll(_TextHelper.GetText(nameof(Resources.PugSharp_Match_Info_NotReady), player.PlayerName, readyPlayers, requiredPlayers));
}

}

public Team GetPlayerTeam(ulong steamID)
Expand Down
3 changes: 3 additions & 0 deletions PugSharp/Models/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ public string Clan
&& !string.Equals(playerController!.Clan, value, StringComparison.Ordinal))
{
playerController.SetClantag(value);

// Fire Event to synchronize all clients
new EventNextlevelChanged(force: false).FireEvent(false);
}
}
}
Expand Down

0 comments on commit 001af69

Please sign in to comment.