minor things

This commit is contained in:
kremsy 2013-12-14 19:32:45 +01:00
parent 30717ce343
commit a1104c327a
2 changed files with 6 additions and 0 deletions

View File

@ -142,6 +142,7 @@ class PlayerManager implements CallbackListener {
*/
public function playerDisconnect(array $callback) {
$login = $callback[1][0];
//TODO check for fakeplayers
$player = $this->removePlayer($login);
$played = Formatter::formatTimeH(time() - $player->joinTime);

View File

@ -193,11 +193,16 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu {
}
if ($enable) {
$pluginClass = substr($actionId, strlen(self::ACTION_PREFIX_ENABLEPLUGIN));
$this->maniaControl->pluginManager->activatePlugin($pluginClass);
$this->maniaControl->log("Admin XY activated plugin " . $pluginClass);
}
else {
$pluginClass = substr($actionId, strlen(self::ACTION_PREFIX_DISABLEPLUGIN));
$this->maniaControl->pluginManager->deactivatePlugin($pluginClass); //TODO support from manager
$this->maniaControl->log("Admin XY deactivated plugin " . $pluginClass); //Todo adminname
}
var_dump($pluginClass);
}
}