edit function onPlayerDisconnected