Skip to content

Avoid actioning participation stop events for leavers#39

Merged
Pablete1234 merged 1 commit into
PGMDev:masterfrom
Pugzy:fix/leave-event
Jun 16, 2026
Merged

Avoid actioning participation stop events for leavers#39
Pablete1234 merged 1 commit into
PGMDev:masterfrom
Pugzy:fix/leave-event

Conversation

@Pugzy

@Pugzy Pugzy commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

If a player is leaving the server (from a team to no team) then the plugin currently tries to cancel that.

This isn't really possible, the option only exists as a team switch calls the same method (with actual teams).
The event getting "cancelled" can break things upstream in PGM where it no longer reacts to the event.

One example of this is the activity tracker which stores data about when a player left, this is listened for in PGM following the PlayerParticipationStopEvent, if this is cancelled then no data is stored for a leaving player.

Signed-off-by: Pugzy <pugzy@mail.com>
@Pugzy
Pugzy requested a review from Pablete1234 June 15, 2026 21:44
@Pugzy
Pugzy force-pushed the fix/leave-event branch from a557f85 to 59c257a Compare June 15, 2026 21:45
@Pablete1234
Pablete1234 merged commit 7610dda into PGMDev:master Jun 16, 2026
2 checks passed
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.

2 participants