function movePlayer($login, $channelId) { $client = Client::GetByLogin($login); if ($client) { $this->moveClient($client->clientId, $channelId); } }
private function movePlayerIFN($login) { if ($client = Client::GetByLogin($login)) { $player = $this->storage->getPlayerObject($login); if (!Channel::IsClientAllowed($client, $client->channelId)) { $this->tsConnection->moveClient($client->clientId, Channel::$serverIds[$player->teamId]); } } }