added isMuted() function to the player object + some adds what a player cant do when muted (use chatmessages like /gg, add map to queue, start a vote...)

This commit is contained in:
kremsy
2014-08-24 12:28:16 +02:00
parent afa15217a2
commit ffa3506879
7 changed files with 307 additions and 263 deletions

View File

@ -516,16 +516,9 @@ class PlayerActions {
/**
* Check if a Player is muted
*
* @param string $login
* @return bool
* @deprecated see Player/isMuted()
*/
public function isPlayerMuted($login) {
$ignoreList = $this->maniaControl->getClient()->getIgnoreList(100, 0);
foreach ($ignoreList as $ignoredPlayers) {
if ($ignoredPlayers->login === $login) {
return true;
}
}
return false;
return $this->maniaControl->getPlayerManager()->getPlayer($login)->isMuted();
}
}