https://github.com/spiderjockey02/craftyclientapi
An API wrapper for the Minecraft server controller, Crafty Controller
https://github.com/spiderjockey02/craftyclientapi
api crafty-controller
Last synced: 3 months ago
JSON representation
An API wrapper for the Minecraft server controller, Crafty Controller
- Host: GitHub
- URL: https://github.com/spiderjockey02/craftyclientapi
- Owner: Spiderjockey02
- Created: 2021-12-14T14:06:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-14T22:30:54.000Z (over 2 years ago)
- Last Synced: 2025-01-18T00:12:12.405Z (5 months ago)
- Topics: api, crafty-controller
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/craftyapi
- Size: 62.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: docs/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
This is an API wrapper for the Minecraft server controller, CraftyControl.- https://craftycontrol.com
## Installation
**NPM** :
```sh
npm install craftyapi
```**Yarn** :
```sh
yarn add craftyapi
```## Example Usage
```javascript
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');
})();
```