mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-06-11 00:43:14 +02:00
Move the response array logic into classes.
This commit is contained in:
@@ -6,7 +6,7 @@ require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use xPaw\SourceQuery\SourceQueryFactory;
|
||||
|
||||
// For the sake of this example
|
||||
// For the sake of this example.
|
||||
header('Content-Type: text/plain');
|
||||
header('X-Content-Type-Options: nosniff');
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use xPaw\SourceQuery\SourceQueryFactory;
|
||||
|
||||
// For the sake of this example
|
||||
// For the sake of this example.
|
||||
header('Content-Type: text/plain');
|
||||
header('X-Content-Type-Options: nosniff');
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ $exception = null;
|
||||
|
||||
try {
|
||||
$query->connect('localhost', 27015);
|
||||
//$query->setUseOldGetChallengeMethod( true ); // Use this when players/rules retrieval fails on games like Starbound
|
||||
//$query->setUseOldGetChallengeMethod(true); // Use this when players/rules retrieval fails on games like Starbound.
|
||||
|
||||
$info = $query->getInfo();
|
||||
$players = $query->getPlayers();
|
||||
|
||||
Reference in New Issue
Block a user