Skip to content

Commit

Permalink
Adding getInfo request
Browse files Browse the repository at this point in the history
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}}}
  • Loading branch information
Icezman001 authored Dec 9, 2020
1 parent a6dccbe commit 2fddb2d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rustplus.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,17 @@ class RustPlus extends EventEmitter {
},
}, callback);
}

/**
* Get the server info
*/
getInfo(callback) {
this.sendRequest({
getInfo: {

},
}, callback);
}

}

Expand Down

0 comments on commit 2fddb2d

Please sign in to comment.