mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
Add check for Password_b on Squad Servers to correct password field.
This commit is contained in:
parent
211c2d1635
commit
5545cae15f
2 changed files with 17 additions and 1 deletions
|
@ -231,7 +231,7 @@ stalker|S.T.A.L.K.E.R.|gamespy3|port=5445,port_query_offset=2
|
||||||
stbc|Star Trek: Bridge Commander|gamespy1|port_query=22101
|
stbc|Star Trek: Bridge Commander|gamespy1|port_query=22101
|
||||||
stvef|Star Trek: Voyager - Elite Force|quake3|port_query=27960
|
stvef|Star Trek: Voyager - Elite Force|quake3|port_query=27960
|
||||||
stvef2|Star Trek: Voyager - Elite Force 2|quake3|port_query=29253
|
stvef2|Star Trek: Voyager - Elite Force 2|quake3|port_query=29253
|
||||||
squad|Squad|valve|port=7787,port_query=27165
|
squad|Squad|squad|port=7787,port_query=27165
|
||||||
swbf|Star Wars: Battlefront|gamespy2|port_query=3658
|
swbf|Star Wars: Battlefront|gamespy2|port_query=3658
|
||||||
swbf2|Star Wars: Battlefront 2|gamespy2|port_query=3658
|
swbf2|Star Wars: Battlefront 2|gamespy2|port_query=3658
|
||||||
swjk|Star Wars Jedi Knight: Jedi Academy (2003)|quake3|port_query=29070
|
swjk|Star Wars Jedi Knight: Jedi Academy (2003)|quake3|port_query=29070
|
||||||
|
|
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…
Reference in a new issue