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\ManiaControl;
|
||||
use ManiaControl\Players\Player;
|
||||
use Maniaplanet\DedicatedServer\Structures\ServerOptions;
|
||||
use Maniaplanet\DedicatedServer\Structures\SystemInfos;
|
||||
use Maniaplanet\DedicatedServer\Structures\Version;
|
||||
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
||||
|
||||
/**
|
||||
@ -197,7 +199,7 @@ class Server implements CallbackListener {
|
||||
/**
|
||||
* Get Server Player Info
|
||||
*
|
||||
* @return array
|
||||
* @return \Maniaplanet\DedicatedServer\Structures\Player
|
||||
*/
|
||||
public function getInfo() {
|
||||
return $this->maniaControl->client->getMainServerPlayerInfo();
|
||||
@ -206,7 +208,7 @@ class Server implements CallbackListener {
|
||||
/**
|
||||
* Get Server Options
|
||||
*
|
||||
* @return array
|
||||
* @return ServerOptions
|
||||
*/
|
||||
public function getOptions() {
|
||||
return $this->maniaControl->client->getServerOptions();
|
||||
@ -225,7 +227,7 @@ class Server implements CallbackListener {
|
||||
/**
|
||||
* Fetch Server Version
|
||||
*
|
||||
* @return string
|
||||
* @return Version
|
||||
*/
|
||||
public function getVersion() {
|
||||
return $this->maniaControl->client->getVersion();
|
||||
|
@ -56,11 +56,10 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
|
||||
|
||||
private function openDedimaniaSession($init = false) {
|
||||
// Open session
|
||||
|
||||
$path = "GRA";
|
||||
$serverVersion = $this->maniaControl->client->getVersion();
|
||||
$serverInfo = $this->maniaControl->server->getInfo();
|
||||
$serverVersion = $this->maniaControl->server->getVersion();
|
||||
$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;
|
||||
|
Loading…
Reference in New Issue
Block a user