Skip to content

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

Notifications You must be signed in to change notification settings

cubed-community/Cubed-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published