Merge remote-tracking branch 'xCausxn/master'
This commit is contained in:
commit
83238f48e2
|
@ -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…
Reference in New Issue