mcmyadmin-api
v0.2.0
Published
nodejs interface for the mcmyadmin api
Downloads
2
Readme
McMyAdmin-API
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! :smile: