Skip to content

RolfKoenders/McMyAdmin-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

McMyAdmin-API XO code style

nodejs interface for the mcmyadmin api

What?

This is a nodejs interface for the McMyAdmin API. McMyAdmin is a minecraft server management tool.

Usage

Create an instance of the McMyAdmin class. The library will take care of obtaining a sessionId so you don't have to login first.

const mcAdmin = new McMyAdmin({
    host: 'http://xxx.xxx.x.xx',
    port: 8080,
    username: 'admin',
    password: 'password'
});

API Methods

status

mcAdmin.status((err, info) => {});

Get the server status. The info object has the following properties:

{
  "status": 200,
  "state": 50,
  "failed": false,
  "failmsg": "",
  "maxram": 4096,
  "users": 0,
  "maxusers": 10,
  "userinfo": {},
  "time": "2016-12-27 15:48:08",
  "ram": 0,
  "starttime": "[Not Running]",
  "uptime": null,
  "cpuusage": 0
}

More methods === Collaborate

At this moment i only needed the status method. If you would like to have more methods implemented create an issue for it or be so nice to create a pr! 😄

About

Nodejs interface for the McMyAdmin API

Resources

Stars

Watchers

Forks

Packages

No packages published