Browse Source

fix(jc2): update query name to jc2m

develop
Daniel Gibbs 3 weeks ago
parent
commit
c87f48f5ec
  1. 2
      lgsm/config-default/config-lgsm/jc2server/_default.cfg
  2. 6
      lgsm/modules/query_gsquery.py

2
lgsm/config-default/config-lgsm/jc2server/_default.cfg

@ -134,7 +134,7 @@ stopmode="2"
# 4: gsquery
# 5: tcp
querymode="2"
querytype="jc2mp"
querytype="jc2m"
## Console type
consoleverbose="yes"

6
lgsm/modules/query_gsquery.py

@ -11,7 +11,7 @@ import socket
import sys
engine_types = ('protocol-valve', 'protocol-quake2', 'protocol-quake3', 'protocol-gamespy1',
'protocol-unreal2', 'ut3', 'minecraft', 'minecraftbe', 'jc2mp', 'mumbleping', 'soldat', 'teeworlds')
'protocol-unreal2', 'ut3', 'minecraft', 'minecraftbe', 'jc2m', 'mumbleping', 'soldat', 'teeworlds')
class gsquery:
@ -23,7 +23,7 @@ class gsquery:
idtech3query = ('protocol-quake3', 'iw3.0', 'ioquake3', 'qfusion')
minecraftquery = ('minecraft', 'lwjgl2')
minecraftbequery = ('minecraftbe')
jc2mpquery = ('jc2mp')
jc2mquery = ('jc2m')
mumblequery = ('mumbleping')
soldatquery = ('soldat')
twquery = ('teeworlds')
@ -40,7 +40,7 @@ class gsquery:
self.query_prompt_string = b'\xff\xff\xff\xffstatus\x00'
elif self.argument.engine in self.idtech3query:
self.query_prompt_string = b'\xff\xff\xff\xffgetstatus'
elif self.argument.engine in self.jc2mpquery:
elif self.argument.engine in self.jc2mquery:
self.query_prompt_string = b'\xFE\xFD\x09\x10\x20\x30\x40'
elif self.argument.engine in self.minecraftquery:
self.query_prompt_string = b'\xFE\xFD\x09\x3d\x54\x1f\x93'

Loading…
Cancel
Save