Skip to content

fix: leave team when fully logged out - #2007

Merged
EmosewaMC merged 5 commits into
mainfrom
leave-team-when-fully-logged-out
Jun 20, 2026
Merged

fix: leave team when fully logged out#2007
EmosewaMC merged 5 commits into
mainfrom
leave-team-when-fully-logged-out

Conversation

@EmosewaMC

Copy link
Copy Markdown
Collaborator

fixes #160

@EmosewaMC EmosewaMC changed the title Leave team when fully logged out fix: leave team when fully logged out Jun 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #160 by ensuring that when a player is fully logged out, they are removed from their current team so they no longer occupy a slot or remain/leads the team.

Changes:

  • Updated chat-server logout handling to remove the disconnecting player from their team via TeamContainer::RemoveMember.
  • Removed the previous per-member TEAM_SET_OFF_WORLD_FLAG broadcast from the logout path.

Comment thread dChatServer/PlayerContainer.cpp
@EmosewaMC
EmosewaMC merged commit a189195 into main Jun 20, 2026
8 of 9 checks passed
@EmosewaMC
EmosewaMC deleted the leave-team-when-fully-logged-out branch June 21, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: When a player disconnects from the team, that player is still in that team and/or leads the team

3 participants