function onUnload() { Monitor::getInstance()->stop(); Stats::EraseAll(); Stats::Clear(); parent::onUnload(); }
function onUnload() { $this->queueable = array(); $this->queue = array(); $this->lastWorst = array(); $this->mapsPlayed = array(); $this->lastActivityTime = array(); ActionHandler::getInstance()->deleteAction($this->enterQueueAction); ActionHandler::getInstance()->deleteAction($this->leaveQueueAction); Queue::EraseAll(); Queue::Clear(); FreeSpot::EraseAll(); parent::onUnload(); }
/** * Call a public method of a registered Plugin. * @param Plugin $caller * @param string $pluginId * @param string $pluginMethod * @param array $methodArgs * @throws Exception */ function callPublicMethod(Plugin $caller, $pluginId, $pluginMethod, $methodArgs) { if (!isset($this->loadedPlugins[$pluginId])) { throw new Exception('Plugin "' . $pluginId . '" which you want to call a method from, does not exist!'); } $plugin = $this->loadedPlugins[$pluginId]; array_push($methodArgs, $caller->getId()); $method = $plugin->getPublicMethod($pluginMethod); return $method->invokeArgs($plugin, $methodArgs); }
function onUnload() { if ($this->matchMakingService instanceof Services\MatchMakingService && $this->matchId) { $this->matchMakingService->updateMatchState($this->matchId, Services\Match::FINISHED); $this->end(); } $this->connection->customizeQuitDialog('', '', true, 0); parent::onUnload(); }
function onUnload() { Vote::Unload(); Vote::EraseAll(); parent::onUnload(); }
function onUnload() { $this->db->execute('DELETE FROM Servers WHERE hostname = %s AND port = %d', $this->db->quote(Config::getInstance()->host), Config::getInstance()->port); parent::onUnload(); }
function onUnload() { $this->setLobbyInfo(false); parent::onUnload(); }
function onUnload() { ChooseMode::EraseAll(); parent::onUnload(); }
function onUnload() { Menu::EraseAll(); parent::onUnload(); }
function onUnload() { parent::onUnload(); Manager::ErasePlugins(); if ($this->threadId) { ThreadHandler::getInstance()->killThread($this->threadId); } }