mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Add PHPDoc information for API parsing.
This commit is contained in:
parent
249e83db91
commit
b8763a7a3f
2 changed files with 11 additions and 2 deletions
|
|
@ -30,6 +30,10 @@ class ServerAPI{
|
||||||
private $rcon;
|
private $rcon;
|
||||||
private $query;
|
private $query;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return PocketMinecraftServer
|
||||||
|
*/
|
||||||
public static function request(){
|
public static function request(){
|
||||||
return self::$serverRequest;
|
return self::$serverRequest;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,14 @@
|
||||||
|
|
||||||
class PocketMinecraftServer{
|
class PocketMinecraftServer{
|
||||||
public $tCnt;
|
public $tCnt;
|
||||||
public $serverID, $interface, $database, $version, $invisible, $api, $tickMeasure, $preparedSQL, $seed, $gamemode, $name, $maxClients, $clients, $eidCnt, $custom, $description, $motd, $port, $saveEnabled;
|
public $serverID, $interface, $database, $version, $invisible, $tickMeasure, $preparedSQL, $seed, $gamemode, $name, $maxClients, $clients, $eidCnt, $custom, $description, $motd, $port, $saveEnabled;
|
||||||
private $serverip, $evCnt, $handCnt, $events, $eventsID, $handlers, $serverType, $lastTick, $ticks, $memoryStats, $async = array(), $asyncID = 0;
|
private $serverip, $evCnt, $handCnt, $events, $eventsID, $handlers, $serverType, $lastTick, $ticks, $memoryStats, $async = array(), $asyncID = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ServerAPI
|
||||||
|
*/
|
||||||
|
public $api;
|
||||||
|
|
||||||
private function load(){
|
private function load(){
|
||||||
$this->version = new VersionString();
|
$this->version = new VersionString();
|
||||||
/*if(defined("DEBUG") and DEBUG >= 0){
|
/*if(defined("DEBUG") and DEBUG >= 0){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue