mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
small changes
This commit is contained in:
parent
973589869e
commit
99954b67d6
8 changed files with 37 additions and 42 deletions
|
|
@ -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{
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue