minor adjustments
This commit is contained in:
parent
d44de5f49e
commit
e202ce9f86
@ -6,6 +6,7 @@ use ManiaControl\Callbacks\Callbacks;
|
|||||||
use ManiaControl\Files\FileUtil;
|
use ManiaControl\Files\FileUtil;
|
||||||
use ManiaControl\Plugins\PluginManager;
|
use ManiaControl\Plugins\PluginManager;
|
||||||
use ManiaControl\Update\UpdateManager;
|
use ManiaControl\Update\UpdateManager;
|
||||||
|
use Maniaplanet\DedicatedServer\Xmlrpc\TransportException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error and Exception Manager Class
|
* Error and Exception Manager Class
|
||||||
|
@ -250,7 +250,7 @@ class ManiaControl implements CommandListener, TimerListener {
|
|||||||
exec($command);
|
exec($command);
|
||||||
} else {
|
} else {
|
||||||
$command = escapeshellarg(ManiaControlDir . "ManiaControl.bat");
|
$command = escapeshellarg(ManiaControlDir . "ManiaControl.bat");
|
||||||
system($command); // TODO, windows stucks here as long controller is running
|
system($command); // TODO: windows gets stuck here as long controller is running
|
||||||
}
|
}
|
||||||
|
|
||||||
// Quit the old instance
|
// Quit the old instance
|
||||||
|
@ -173,7 +173,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin {
|
|||||||
$this->mxKarmaOpenSession();
|
$this->mxKarmaOpenSession();
|
||||||
$this->mxKarma['startTime'] = time();
|
$this->mxKarma['startTime'] = time();
|
||||||
|
|
||||||
//Check if Karma Code got specified, and inform admin that it would be good to specifiy one
|
//Check if Karma Code got specified, and inform admin that it would be good to specify one
|
||||||
$serverLogin = $this->maniaControl->server->login;
|
$serverLogin = $this->maniaControl->server->login;
|
||||||
$karmaSettingName = self::buildKarmaSettingName($serverLogin);
|
$karmaSettingName = self::buildKarmaSettingName($serverLogin);
|
||||||
$mxKarmaCode = $this->maniaControl->settingManager->getSettingValue($this, $karmaSettingName);
|
$mxKarmaCode = $this->maniaControl->settingManager->getSettingValue($this, $karmaSettingName);
|
||||||
|
@ -360,7 +360,7 @@ class WidgetPlugin implements CallbackListener, TimerListener, Plugin {
|
|||||||
$quad->setSubStyle($quad::SUBSTYLE_StateFavourite);
|
$quad->setSubStyle($quad::SUBSTYLE_StateFavourite);
|
||||||
$quad->setPosition($width / 2 - 4, -1.5, -0.5);
|
$quad->setPosition($width / 2 - 4, -1.5, -0.5);
|
||||||
$quad->setSize(3, 3);
|
$quad->setSize(3, 3);
|
||||||
$quad->setManialink('mcontrol?favorite=' . urlencode($this->maniaControl->server->login));
|
$quad->setManialink('maniacontrol?favorite=' . urlencode($this->maniaControl->server->login));
|
||||||
|
|
||||||
// Send manialink
|
// Send manialink
|
||||||
$this->maniaControl->manialinkManager->sendManialink($maniaLink, $login);
|
$this->maniaControl->manialinkManager->sendManialink($maniaLink, $login);
|
||||||
|
Loading…
Reference in New Issue
Block a user