1.0.0-beta.1 • Published 1 year ago

@mclc/yggdrasil v1.0.0-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Yggdrasil for MCLC

This package is designed to work with MCLC to add Yggdrasil support.

Installation

# npm
npm i minecraft-launcher-core

# Yarn
yarn add minecraft-launcher-core

# pnpm
pnpm add minecraft-launcher-core

Usage

import Yggdrasil from '@mclc/yggdrasil';
import { Client } from 'minecraft-launcher-core';
import { v4 } from 'uuid';

const auth = new Yggdrasil('https://url.to/yggdrasil/authserver');
const authorization = await auth.authenticate({
    username: 'john@example.com',
    password: 'password',
    clientToken: v4(),
});

const client = new Client({
    // These arguments are only for the authentication
    authorization,
    customArgs: ['-javaagent:/path/to/authlib-injector.jar=https://url.to/yggdrasil'],
});

client.launch();
1.0.0-beta.1

1 year ago