resolved two todos

This commit is contained in:
kremsy
2014-01-14 15:45:36 +01:00
committed by Steffen Schröder
parent e3d67d4f6d
commit 1a9c182f15
2 changed files with 9 additions and 4 deletions

View File

@ -188,7 +188,7 @@ class MapManager implements CallbackListener {
*
* @return bool
*/
public function shuffleMapList() {
public function shuffleMapList($admin = null) {
shuffle($this->maps);
$mapArray = array();
@ -205,6 +205,12 @@ class MapManager implements CallbackListener {
$this->fetchCurrentMap();
if($admin != null) {
$message = '$<' . $admin->nickname . '$> shuffled the Maplist!';
$this->maniaControl->chat->sendSuccess($message);
$this->maniaControl->log($message, true);
}
return true;
}