Add check for Password_b on Squad Servers to correct password field.

This commit is contained in:
xCausxn 2019-11-17 16:08:46 +00:00
parent 211c2d1635
commit 5545cae15f
2 changed files with 17 additions and 1 deletions

16
protocols/squad.js Normal file
View file

@ -0,0 +1,16 @@
const Valve = require('./valve');
class Squad extends Valve {
constructor() {
super();
}
async cleanup(state) {
await super.cleanup(state);
if (state.raw.rules != null && state.raw.rules.Password_b === "true") {
state.password = true;
}
}
}
module.exports = Squad;