phpdoc fixes
This commit is contained in:
parent
6f99678122
commit
cf47fb1792
@ -6,7 +6,9 @@ use ManiaControl\Callbacks\CallbackListener;
|
|||||||
use ManiaControl\Callbacks\CallbackManager;
|
use ManiaControl\Callbacks\CallbackManager;
|
||||||
use ManiaControl\ManiaControl;
|
use ManiaControl\ManiaControl;
|
||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
|
use Maniaplanet\DedicatedServer\Structures\ServerOptions;
|
||||||
use Maniaplanet\DedicatedServer\Structures\SystemInfos;
|
use Maniaplanet\DedicatedServer\Structures\SystemInfos;
|
||||||
|
use Maniaplanet\DedicatedServer\Structures\Version;
|
||||||
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -197,7 +199,7 @@ class Server implements CallbackListener {
|
|||||||
/**
|
/**
|
||||||
* Get Server Player Info
|
* Get Server Player Info
|
||||||
*
|
*
|
||||||
* @return array
|
* @return \Maniaplanet\DedicatedServer\Structures\Player
|
||||||
*/
|
*/
|
||||||
public function getInfo() {
|
public function getInfo() {
|
||||||
return $this->maniaControl->client->getMainServerPlayerInfo();
|
return $this->maniaControl->client->getMainServerPlayerInfo();
|
||||||
@ -206,7 +208,7 @@ class Server implements CallbackListener {
|
|||||||
/**
|
/**
|
||||||
* Get Server Options
|
* Get Server Options
|
||||||
*
|
*
|
||||||
* @return array
|
* @return ServerOptions
|
||||||
*/
|
*/
|
||||||
public function getOptions() {
|
public function getOptions() {
|
||||||
return $this->maniaControl->client->getServerOptions();
|
return $this->maniaControl->client->getServerOptions();
|
||||||
@ -225,7 +227,7 @@ class Server implements CallbackListener {
|
|||||||
/**
|
/**
|
||||||
* Fetch Server Version
|
* Fetch Server Version
|
||||||
*
|
*
|
||||||
* @return string
|
* @return Version
|
||||||
*/
|
*/
|
||||||
public function getVersion() {
|
public function getVersion() {
|
||||||
return $this->maniaControl->client->getVersion();
|
return $this->maniaControl->client->getVersion();
|
||||||
|
@ -56,11 +56,10 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
|
|||||||
|
|
||||||
private function openDedimaniaSession($init = false) {
|
private function openDedimaniaSession($init = false) {
|
||||||
// Open session
|
// Open session
|
||||||
|
$serverInfo = $this->maniaControl->server->getInfo();
|
||||||
$path = "GRA";
|
$serverVersion = $this->maniaControl->server->getVersion();
|
||||||
$serverVersion = $this->maniaControl->client->getVersion();
|
|
||||||
$packMask = substr($this->maniaControl->server->titleId, 2);
|
$packMask = substr($this->maniaControl->server->titleId, 2);
|
||||||
$this->dedimaniaData = new DedimaniaData("abc", "cde", $path, $packMask, $serverVersion);
|
$this->dedimaniaData = new DedimaniaData("abc", "cde", $serverInfo->path, $packMask, $serverVersion);
|
||||||
|
|
||||||
|
|
||||||
$url = self::DEDIMANIA_URL;
|
$url = self::DEDIMANIA_URL;
|
||||||
|
Loading…
Reference in New Issue
Block a user