mineinfo-new
v1.2.8
Published
Powerfull lib to get minecraft server info from 4 free web api
Downloads
2
Readme
MineInfo New
Kind: global class
new MineInfo(logging, api_log, ping_log)
| Param | Type | Default | Description | | --- | --- | --- | --- | | logging | Boolean | false | Сохранение логов в файл log.txt | | api_log | Boolean | false | Логи от api | | ping_log | Boolean | false | Логи от ping |
Example
const Mine = new MineInfo(true, true, true);
mineInfo.getInfo(address, port) ⇒ Promise
Получение формированного объекта состоящего из самых важных данных о сервере
Kind: instance method of MineInfo
| Param | Type | Description | | --- | --- | --- | | address | string | Ip адрес сервера | | port | number | Порт сервера |
Example
const Mine = new MineInfo(true, true, true);
Mine.getInfo("MC.Hypixel.net").then(e => console.dir(e));