diff --git a/lib/server.js b/lib/server.js index 35a7b9f..af3ca0f 100644 --- a/lib/server.js +++ b/lib/server.js @@ -8,6 +8,15 @@ var ArmaServer = require('arma-server'); var config = require('../config.js'); var queryInterval = 5000; +var queryTypes = { + arma1: 'arma', + arma2: 'arma2', + arma2oa: 'arma2', + arma3: 'arma3', + cwa: 'operationflashpoint', + ofp: 'operationflashpoint', + ofpresistance: 'operationflashpoint', +}; var Server = function (path, type, options) { this.path = path; @@ -37,7 +46,7 @@ Server.prototype.queryStatus = function() { var self = this; Gamedig.query( { - type: 'arma3', + type: queryTypes[config.game], host: '127.0.0.1', port: self.port, },