node-gamedig/protocols/warsow.js

16 lines
342 B
JavaScript
Raw Normal View History

const Quake3 = require('./quake3');
class Warsow extends Quake3 {
2019-01-10 13:03:07 +01:00
async run(state) {
await super.run(state);
2017-08-09 12:32:09 +02:00
if(state.players) {
for(const player of state.players) {
player.team = player.address;
delete player.address;
}
}
}
}
module.exports = Warsow;