mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
Merge remote-tracking branch 'xCausxn/master'
This commit is contained in:
commit
83238f48e2
1 changed files with 5 additions and 3 deletions
|
|
@ -15,6 +15,8 @@ module.exports = require('./core').extend({
|
||||||
function(c) {
|
function(c) {
|
||||||
self.sendCommand('serverinfo', function(data) {
|
self.sendCommand('serverinfo', function(data) {
|
||||||
state.raw = data[0];
|
state.raw = data[0];
|
||||||
|
if('virtualserver_name' in state.raw) state.name = state.raw.virtualserver_name;
|
||||||
|
if('virtualserver_maxclients' in state.raw) state.maxplayers = state.raw.virtualserver_maxclients;
|
||||||
c();
|
c();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue