From 2fddb2d0978839aa2bb40f41398788aa88962c7d Mon Sep 17 00:00:00 2001 From: Icezman001 Date: Wed, 9 Dec 2020 13:36:39 +0100 Subject: [PATCH] Adding getInfo request Example output: {"response":{"seq":2,"info":{"name":"SERVER NAME","headerImage":"URL TO PNG FILE","url":"CUSTOM URL OF SERVER","map":"Procedural Map","mapSize":4500,"wipeTime":1607024434,"players":188,"maxPlayers":200,"queuedPlayers":0,"seed":86804,"salt":9000}}} --- rustplus.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rustplus.js b/rustplus.js index f764109..74e9f3b 100644 --- a/rustplus.js +++ b/rustplus.js @@ -230,6 +230,17 @@ class RustPlus extends EventEmitter { }, }, callback); } + + /** + * Get the server info + */ + getInfo(callback) { + this.sendRequest({ + getInfo: { + + }, + }, callback); + } }