public function onLocalRecordsLoaded($records, BaseRecords $baseRecords)
    {
        if (!$this->checkRecordPlugin($baseRecords)) {
            return;
        }

        if (count($records) > 0) {
            $this->updater->setLocalRecord($records[0]->getPlayer()->getNickname(), $records[0]->getCheckpoints());
        } else {
            $this->updater->setLocalRecord("-", []);
        }
    }
public function onLocalRecordsLoaded($records, BaseRecords $baseRecords)
    {
        if (!$this->checkRecordPlugin($baseRecords)) {
            return;
        }

        if (count($records) > 0) {
            $this->updater->setLocalRecord($records[0]->getPlayer()->getNickname(), $records[0]->getCheckpoints());
        } else {
            $this->updater->setLocalRecord("-", []);
        }
    }
public function onLocalRecordsLoaded ( $ records , BaseRecords $ baseRecords ) { if ( ! $ this -> checkRecordPlugin ( $ baseRecords ) ) { return ; } if ( count ( $ records ) > 0 ) { $ this -> updater -> setLocalRecord ( $ records [ 0 ] -> getPlayer ( ) -> getNickname ( ) , $ records [ 0 ] -> getCheckpoints ( ) ) ; } else { $ this -> updater -> setLocalRecord ( "-" , [ ] ) ; } }
Called when local records are loaded.

@param Record[] $records
Called when local records are loaded .