From 8d4970630362981e6076a5392c41833ce195bf8e Mon Sep 17 00:00:00 2001 From: Pierce Date: Thu, 29 Nov 2018 21:44:40 -0500 Subject: [PATCH] new login method --- README.md | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 2e28ce4..00e613f 100644 --- a/README.md +++ b/README.md @@ -6,25 +6,23 @@ A script that launches Minecraft using NodeJS. #### Usage ```javascript -const launch = require('./pathtomodule').core; +const launcher = require('./pathtomodule'); -launch({ - login: { - username: "", // required - password: "", // optional - offline: false // optional - }, +launcher.authenticator("email", "password").then(auth => { + launcher.core({ + authorization: auth, // All of the following is required - root: "directory", // C:/Users/user/AppData/Roaming/.mc - os: "windows", // windows, osx, linux - version: { - number: "1.12.2", // Minecraft version you want to launch - type: "MC-Launcher" // Type. Can be anything - }, - memory: { - max: "5000" - } -}) + root: "directory", // C:/Users/user/AppData/Roaming/.mc + os: "windows", // windows, osx, linux + version: { + number: "1.13.2", // Minecraft version you want to launch + type: "MCC-Launcher" // Type. Can be anything + }, + memory: { + max: "500" + } + }); +}); ``` #### What should it look like running from console?