Added get dedimania records function

This commit is contained in:
Max Klaversma 2014-04-17 20:24:31 +02:00 committed by Steffen Schröder
parent ea5faab2b0
commit bf393a56f1

View File

@ -784,6 +784,19 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
return array('UId' => $map->uid, 'GameMode' => $gameMode);
}
/**
* Function to retrieve the dedimania records on the current map
*
* @return array|RecordData
*/
public function getDedimaniaRecords() {
if (!$this->dedimaniaData->records) {
return new RecordData(null);
}
$records = $this->dedimaniaData->records;
return $records;
}
/**
* Get the dedimania record of the given login
*