serverranking plugin, also for trackmania

This commit is contained in:
kremsy
2014-02-06 14:35:54 +01:00
committed by Steffen Schröder
parent d9963b53ca
commit f6a4355f41
4 changed files with 421 additions and 305 deletions

View File

@ -393,7 +393,7 @@ class LocalRecordsPlugin implements CallbackListener, TimerListener, Plugin {
* @param int $limit
* @return array
*/
private function getLocalRecords(Map $map, $limit = -1) {
public function getLocalRecords(Map $map, $limit = -1) {
$mysqli = $this->maniaControl->database->mysqli;
$limit = ($limit > 0 ? "LIMIT " . $limit : "");
$query = "SELECT * FROM (