Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.29 KB

File metadata and controls

50 lines (38 loc) · 1.29 KB

CraftyAPI

Downloads Npm version
Github stars License
This is an API wrapper for the Minecraft server controller, CraftyControl.

Installation

NPM :

npm install craftyapi

Yarn :

yarn add craftyapi

Example Usage

const CraftyAPI = require('craftyapi');

const API = new CraftyAPI('https://192.168.0.2:8000', 'YourAdminKey');

(async () => {
	console.log('Fetching hosts');
	console.log(await API.fetchHost());
	API.runCommand(4, 'save-all');
})();