phpdoc improvements

This commit is contained in:
Steffen Schröder
2014-10-24 20:08:21 +02:00
parent 30459811c0
commit 1a8c6ad036
9 changed files with 194 additions and 122 deletions

View File

@ -515,9 +515,13 @@ class PlayerActions {
/**
* Check if a Player is muted
*
* @deprecated see Player/isMuted()
* @deprecated
* @see Player::isMuted()
*/
public function isPlayerMuted($login) {
return $this->maniaControl->getPlayerManager()->getPlayer($login)->isMuted();
if ($player = $this->maniaControl->getPlayerManager()->getPlayer($login)) {
return $player->isMuted();
}
return false;
}
}