function ServerGame.onLeave(P,l,L,y)for P,l in pairs(connections)do l:Disconnect()end RoomManager.resetRooms()end return ServerGame

function ServerGame.onLeave(stateMachine, event, from, to)
	for _, connection in pairs(connections) do
		connection:Disconnect()
	end

	RoomManager.resetRooms()
end

return ServerGame
