mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Quick Fix For Name and MaxPlayers
virtualserver_name and virtualserver_maxclients
This commit is contained in:
parent
53c7f83daa
commit
61d239ccd5
1 changed files with 2 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ module.exports = require('./core').extend({
|
|||
function(c) {
|
||||
self.sendCommand('serverinfo', function(data) {
|
||||
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();
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue