Posts: 701
Threads: 7
Joined: Feb 2017
Reputation:
0
If I have to guess, I'd say that maybe the GetPlayerVirtualWorld function does not work under OnPlayerDisconnect, but that's a supposition.
You can also try to set the player variable of its virtual world every time you use the SetPlayerVirtualWorld function so you don't have to worry on getting the virtual world afterwards as you will have it stored already.
Then you'll only need to save that variable under OnPlayerDisconnect just like the other data.