0.2.6 • Published 3 years ago

cubed-api v0.2.6

Weekly downloads
7
License
ISC
Repository
github
Last release
3 years ago

Cubed-API

A user API wrapper for CubedCraft and Player Servers, allows you to easily perform functions as if your a logged in user

By using this library you agree to the terms of use: https://pastebin.com/raw/tB2nMNY9

Read documentation here: https://pondwadermc.gitbook.io/cubed-api/

npm

Installing

To install Cubed-API run npm i cubed-api

Example Code

const CubedCraft = require('cubed-api');

// Account Details
const username = 'ACCOUNT_USERNAME';
const password = 'ACCOUNT_PASSWORD';

// Logging Into The Account
CubedCraft.login(username, password).then(ses => {

    // Getting All Of The User's Servers With Their Session ID
    CubedCraft.getServers(ses).then(servers => {
        console.log(servers);
    })
    
});
const CubedCraft = require('cubed-api');

CubedCraft.console.onMessage('SessionID', m => {
    console.log(m);
})

CubedCraft-Logo

0.2.6

3 years ago

0.2.5

3 years ago

0.2.1

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago