Austinb / GameQ

A PHP Gameserver Status Query Library
https://austinb.github.io/GameQ/
GNU Lesser General Public License v3.0
403 stars 137 forks source link

Custom parameters #705

Closed ZekyTheWolf closed 1 year ago

ZekyTheWolf commented 1 year ago

Add ability to pass custom parameters per server.

Example:

$GameQ = new \GameQ\GameQ();
$GameQ->addServer([
    'type' => 'css',
    'host' => '127.0.0.1:27015',
    'custom' => [
        'key_1' => 'data_1'
    ]
]);
$results = $GameQ->process();

Can be accessed:

print_r($results['gq_custom']);

Result _accessed via printr($results) image

ZekyTheWolf commented 1 year ago

Addressing #684

scrutinizer-notifier commented 1 year ago

The inspection completed: 19 new issues, 3 updated code elements