mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Merge pull request #148 from xCausxn/feat/squad
Add check for Password_b on Squad Servers to correct password field.
This commit is contained in:
commit
7c151c771e
2 changed files with 17 additions and 1 deletions
16
protocols/squad.js
Normal file
16
protocols/squad.js
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue