Hey,
I previously thought that when players disconnect, their Player object becomes null. However I have recently realized this is not the case and it puts flaws in many of my past custom commands and code. For example the lottery command.
I'm currently working on a pretty large command which operates a mini gun game, however when players leave the server, they are not removed from the game which is a dilemma. If I have access to an event when a player leaves the server I can remove them from all necessary items related to the gun game to ensure it plays efficiently.
Please get back to me asap
Thanks.