small fixes

This commit is contained in:
kremsy 2014-02-01 20:25:20 +01:00 committed by Steffen Schröder
parent 6a1a014696
commit 5ae3e43097
3 changed files with 8 additions and 4 deletions

View File

@ -322,7 +322,6 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
* @return bool
*/
private function applyNewServerSettings(array $newSettings, Player $player) {
var_dump($newSettings);
if (!$newSettings) {
return true;
}

View File

@ -135,11 +135,14 @@ class Server implements CallbackListener {
* @param bool $teamMode
*/
public function setTeamMode($teamMode = true) {
$oldStatus = $this->teamMode;
$this->teamMode = $teamMode;
// Trigger callback
if ($oldStatus != $this->teamMode) {
$this->maniaControl->callbackManager->triggerCallback(self::CB_TEAM_STATUS_CHANGED, array(self::CB_TEAM_STATUS_CHANGED, $teamMode));
}
}
/**
* Check if the Server Runs a TeamMode

View File

@ -355,12 +355,13 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
$quadStyle = $this->maniaControl->manialinkManager->styleManager->getDefaultMainWindowStyle();
$quadSubstyle = $this->maniaControl->manialinkManager->styleManager->getDefaultMainWindowSubStyle();
$max_queue = $this->maniaControl->settingManager->getSetting($this, self::QUEUE_MAX);
//TODO position setting
// Main frame
$frame = new Frame();
$maniaLink->add($frame);
$frame->setSize(60, 6);
$frame->setPosition(0, 67, 0);
$frame->setPosition(0, -46, 0);
// Background
$backgroundQuad = new Quad();
@ -447,7 +448,8 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
$frame = new Frame();
$maniaLink->add($frame);
$frame->setSize(60, 6);
$frame->setPosition(0, 67, 0);
$frame->setPosition(0, -46, 0);
//TODO position setting
// Background
$backgroundQuad = new Quad();