extends |
Http |
---|
Tshock Protocol Class Result from this call should be a header + JSON response References:
Methods | ||
---|---|---|
public
|
processResponse(): array
|
# |
Properties | |||
---|---|---|---|
protected
|
array
|
$packets = [
self::PACKET_STATUS => "GET /v2/server/status?players=true&rules=true HTTP/1.0\r\nAccept: */*\r\n\r\n",
]
|
# |
protected
|
string
|
$protocol = 'tshock'
|
# |
protected
|
string
|
$name = 'tshock'
|
# |
protected
|
string
|
$name_long = "Tshock"
|
# |
protected
|
array
|
$normalize = [
'general' => [
'dedicated' => 'dedicated',
'hostname' => 'hostname',
'mapname' => 'world',
'maxplayers' => 'maxplayers',
'numplayers' => 'numplayers',
'password' => 'password',
],
'player' => ['name' => 'nickname', 'team' => 'team'],
]
|
# |
Properties inherited from GameQ\Protocols\Http |
---|
$transport |
Properties inherited from GameQ\Protocol |
---|
$port_diff, $responses, $process_methods, $packets_response, $result, $options, $state, $join_link |