mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-09-08 11:51:32 +02: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;
|