small changes

This commit is contained in:
GameHerobrine 2024-07-02 04:00:14 +03:00
parent 973589869e
commit 99954b67d6
8 changed files with 37 additions and 42 deletions

View file

@ -2,13 +2,12 @@
class QueryAPI{
public static $NOT_FOUND_VALUE; //TODO just use null
public static $NOT_FOUND_VALUE = null;
private $queryData;
private $server;
public function __construct(){
$this->server = ServerAPI::request();
QueryAPI::$NOT_FOUND_VALUE = new NFV();
$this->updateQueryData("splitnum", chr(128));
$this->updateQueryData("hostname", $this->server->name);
$this->updateQueryData("gametype", ($this->server->gamemode & 0x01) === 0 ? "SMP" : "CMP");
@ -35,8 +34,4 @@ class QueryAPI{
public function getQueryData(){
return $this->queryData;
}
}
class NFV{
}