mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-22 20:26:22 +03:00
new login method
This commit is contained in:
parent
d4a3f9b90b
commit
8d49706303
1 changed files with 15 additions and 17 deletions
20
README.md
20
README.md
|
@ -6,25 +6,23 @@ A script that launches Minecraft using NodeJS.
|
||||||
#### Usage
|
#### Usage
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const launch = require('./pathtomodule').core;
|
const launcher = require('./pathtomodule');
|
||||||
|
|
||||||
launch({
|
launcher.authenticator("email", "password").then(auth => {
|
||||||
login: {
|
launcher.core({
|
||||||
username: "", // required
|
authorization: auth,
|
||||||
password: "", // optional
|
|
||||||
offline: false // optional
|
|
||||||
},
|
|
||||||
// All of the following is required
|
// All of the following is required
|
||||||
root: "directory", // C:/Users/user/AppData/Roaming/.mc
|
root: "directory", // C:/Users/user/AppData/Roaming/.mc
|
||||||
os: "windows", // windows, osx, linux
|
os: "windows", // windows, osx, linux
|
||||||
version: {
|
version: {
|
||||||
number: "1.12.2", // Minecraft version you want to launch
|
number: "1.13.2", // Minecraft version you want to launch
|
||||||
type: "MC-Launcher" // Type. Can be anything
|
type: "MCC-Launcher" // Type. Can be anything
|
||||||
},
|
},
|
||||||
memory: {
|
memory: {
|
||||||
max: "5000"
|
max: "500"
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### What should it look like running from console?
|
#### What should it look like running from console?
|
||||||
|
|
Loading…
Add table
Reference in a new issue