cubed-api

0.2.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i cubed-api

Weekly Downloads

2

Version

0.2.6

License

ISC

Unpacked Size

39.8 kB

Total Files

27

Last publish

Collaborators

  • pondwader