match settings manager

This commit is contained in:
Steffen Schröder committed 2014-05-11 15:28:53 +02:00
1 parent 52be0fab10
commit 0834d2c587
11 files changed
+154 -82

No files matched your search

+2 -2
View File
@@ -335,7 +335,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin {
$properties = array();
$gameMode = $this->maniaControl->server->getGameMode(true);
$gameMode = $this->maniaControl->server->matchSettingsManager->getGameMode(true);
if ($gameMode == 'Script') {
$scriptName = $this->maniaControl->client->getScriptName();
$properties['gamemode'] = $scriptName["CurrentValue"];
@@ -444,7 +444,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin {
return;
}
$gameMode = $this->maniaControl->server->getGameMode(true);
$gameMode = $this->maniaControl->server->matchSettingsManager->getGameMode(true);
if (count($votes) == 0) {
return;