Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor join logic & add support for squads #1136

Merged
merged 2 commits into from
Feb 20, 2023
Merged

Refactor join logic & add support for squads #1136

merged 2 commits into from
Feb 20, 2023

Conversation

Pablete1234
Copy link
Member

This Implements a relatively big refactor to the join logic in PGM, which makes it more flexible and easier to maintain. We no longer have different codepaths for join, force-join, team switch kit (which adds a title when joining) etc. They now instead all route thru queryJoin & join, but with a JoinRequest, which decides how this player is allowed to join.

You may now join a player to join with FORCE perms (even if they don't have those themselves) and the whole join process will respect that, EVEN after the join occurs (ie: if a re-balance occurs, or a priority-kick occurs, a forced player won't be kicked out). Before this behavior would be dependant on the users' permissions instead of on what "flags" it used to join.

Ontop of that, it adds support for Squads. These are a new pgm integration to be handled by 3rd party plugins, where PGM has very little logic to support them (expect Community to have support for them very soon). Players in the same squad will see eachother listed higher in the tablist, and underlined.

Electroid
Electroid previously approved these changes Feb 20, 2023
Signed-off-by: Pablo Herrera <pabloherrerapalacio@gmail.com>
Signed-off-by: Pablo Herrera <pabloherrerapalacio@gmail.com>
@Electroid Electroid merged commit 749c9c4 into dev Feb 20, 2023
@Electroid Electroid deleted the squads branch February 20, 2023 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Code needs to be redesigned
Development

Successfully merging this pull request may close these issues.

3 participants