【文件属性】:
文件名称:rustcon:RCON的RCON服务和日志解析器
文件大小:24KB
文件格式:ZIP
更新时间:2021-05-04 22:46:50
JavaScript
锈菌
RCON的RCON服务和日志解析器
用法
安装
npm install --save rustcon
跑步
import RustCon from 'rustcon';
// initialize
let rustcon = new RustCon("rust.server.ip.address", port, "rcon password");
// listen for events
rustcon.on('server_info', (msg) => console.log(msg)); // hostname, desc, url, image
rustcon.on('player_status', (msg) => console.log(msg)); // list of players
rustcon.on('message', (msg) => console.
【文件预览】:
rustcon-master
----yarn.lock(55KB)
----.babelrc(30B)
----lib()
--------message_parser.js(3KB)
--------rustcon.js(3KB)
----spec()
--------support()
----LICENSE(1KB)
----README.md(2KB)
----dist()
--------message_parser.js(5KB)
--------rustcon.js(7KB)
----.gitignore(546B)
----index.js(52B)
----package.json(728B)