Added get dedimania records function
This commit is contained in:
parent
ea5faab2b0
commit
bf393a56f1
@ -784,6 +784,19 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
|
|||||||
return array('UId' => $map->uid, 'GameMode' => $gameMode);
|
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
|
* Get the dedimania record of the given login
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user