LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[IDEA] Addition of PlayerEvents.Leaving event

Open MajorFox-MJ opened this issue 8 months ago • 0 comments

Goal Description

It would be useful to introduce a PlayerEvents.Leaving event that triggers before a player fully disconnects from the server.

Currently, PlayerEvents.Left is fired after the player has already left, which limits access to important player data at the time of disconnection. This makes it difficult or impossible to reliably retrieve or process certain information (inventory, role state, custom data).

This would avoid the usage of OnDestroy or any alternative.

Notes

No response

MajorFox-MJ avatar Mar 22 '26 10:03 MajorFox-MJ