diff --git a/core/Admin/AuthenticationManager.php b/core/Admin/AuthenticationManager.php index 4f40acd4..abb8d587 100644 --- a/core/Admin/AuthenticationManager.php +++ b/core/Admin/AuthenticationManager.php @@ -287,24 +287,6 @@ class AuthenticationManager implements CallbackListener, EchoListener, Communica return $admins; } - /** - * Get all connected Players with less permission than the given Auth Level - * - * @api - * @param int $authLevel - * @return Player[] - */ - public function getConnectedPlayers($authLevel = self::AUTH_LEVEL_MODERATOR) { - $players = $this->maniaControl->getPlayerManager()->getPlayers(); - $playerArray = array(); - foreach ($players as $player) { - if (!self::checkRight($player, $authLevel)) { - array_push($playerArray, $player); - } - } - return $playerArray; - } - /** * Check whether the Player has enough Rights * diff --git a/core/Server/Server.php b/core/Server/Server.php index 7c2663a0..512eab14 100644 --- a/core/Server/Server.php +++ b/core/Server/Server.php @@ -333,9 +333,8 @@ class Server implements CallbackListener, CommandListener, UsageInformationAble try { $replay = $this->maniaControl->getClient()->getValidationReplay($login); } catch (Exception $e) { - // TODO temp added 19.04.2014 $this->maniaControl->getErrorHandler()->triggerDebugNotice("Exception line 330 Server.php" . $e->getMessage()); - trigger_error("Couldn't get validation replay of '{$login}'. " . $e->getMessage()); + Logger::logError("Couldn't get validation replay of '{$login}'. " . $e->getMessage()); return null; } return $replay;