mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 01:08:32 +01:00
17 lines
328 B
JavaScript
17 lines
328 B
JavaScript
|
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;
|