minor things
This commit is contained in:
parent
30717ce343
commit
a1104c327a
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user